summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-16 20:12:55 +0200
committerGitHub <noreply@github.com>2021-04-16 20:12:55 +0200
commit8fa65823d71d2ec9e4e9d2d33a21162c6b9b9d1d (patch)
tree28051851a529856da2dde63bc49e3828462359ad /smoketest
parentcaa39332e7669286a05e0c7e136d2e64186825a9 (diff)
parentedbd692f5a29c02fbc0c64c737bc7d54157e0bc9 (diff)
downloadvyos-1x-8fa65823d71d2ec9e4e9d2d33a21162c6b9b9d1d.tar.gz
vyos-1x-8fa65823d71d2ec9e4e9d2d33a21162c6b9b9d1d.zip
Merge pull request #810 from sever-sever/T2216-smoke
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()