summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-04-16 17:30:14 +0000
committersever-sever <v.gletenko@vyos.io>2021-04-16 17:30:14 +0000
commitedbd692f5a29c02fbc0c64c737bc7d54157e0bc9 (patch)
tree28051851a529856da2dde63bc49e3828462359ad /smoketest
parentcaa39332e7669286a05e0c7e136d2e64186825a9 (diff)
downloadvyos-1x-edbd692f5a29c02fbc0c64c737bc7d54157e0bc9.tar.gz
vyos-1x-edbd692f5a29c02fbc0c64c737bc7d54157e0bc9.zip
containers: T2216: Static ip for conteiner smoketest
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_container.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_container.py b/smoketest/scripts/cli/test_container.py
index f16dbd219..d4f152828 100755
--- a/smoketest/scripts/cli/test_container.py
+++ b/smoketest/scripts/cli/test_container.py
@@ -39,11 +39,18 @@ def cmd_to_json(command):
class TesContainer(VyOSUnitTestSHIM.TestCase):
+ # We need real internet connection to pull images
def setUp(self):
- self.cli_set(['interfaces', 'ethernet', 'eth0', 'address', 'dhcp'])
+ self.cli_set(['interfaces', 'ethernet', 'eth0', 'address', '10.0.2.15/24'])
+ self.cli_set(['protocols', 'static', 'route', '0.0.0.0/0', 'next-hop', '10.0.2.2'])
+ self.cli_set(['system', 'name-server', '1.1.1.1'])
+ self.cli_set(['system', 'name-server', '8.8.8.8'])
def tearDown(self):
- self.cli_delete(['interfaces', 'ethernet', 'eth0', 'address', 'dhcp'])
+ self.cli_delete(['interfaces', 'ethernet', 'eth0', 'address', '10.0.2.15/24'])
+ self.cli_delete(['protocols', 'static', 'route', '0.0.0.0/0', 'next-hop', '10.0.2.2'])
+ self.cli_delete(['system', 'name-server', '1.1.1.1'])
+ self.cli_delete(['system', 'name-server', '8.8.8.8'])
self.cli_delete(base_path)
self.cli_commit()