settings: move ipv6/ipv4 config into network

this also rename sysinfo_config to ipv4_config
This commit is contained in:
Girish Ramakrishnan
2023-08-03 06:05:29 +05:30
parent f2e56cbdd8
commit 92a103d635
14 changed files with 144 additions and 139 deletions
+14
View File
@@ -110,6 +110,20 @@ describe('Network', function () {
});
});
describe('IPv6 config', function () {
it('can get default IPv6 setting', async function () {
const config = await network.getIPv6Config();
expect(config.provider).to.be('noop');
});
it('can set IPv6 setting', async function () {
await network.setIPv6Config({ provider: 'generic' });
const config = await network.getIPv6Config();
expect(config.provider).to.be('generic');
});
});
describe('Dynamic DNS', function () {
it('can get default dyndns', async function () {
expect(await network.getDynamicDns()).to.be(false);