diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-06 13:49:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 13:49:56 +0200 |
commit | b136fa67c49385e9fbec625ccd18ccc846ce73c2 (patch) | |
tree | efdee813eccc9642e09cf9260376f3c1c4d45e3e /smoketest/scripts/cli/test_service_https.py | |
parent | 82801281e8a32b704377a166b21529385b7c32fc (diff) | |
parent | b9ee31f23b7258161eb9153ad3cdc719c8cd6120 (diff) | |
download | vyos-1x-b136fa67c49385e9fbec625ccd18ccc846ce73c2.tar.gz vyos-1x-b136fa67c49385e9fbec625ccd18ccc846ce73c2.zip |
Merge pull request #3267 from vyos/mergify/bp/sagitta/pr-3266
T6199: start validating smoketests against real CLI defaultValues (backport #3266)
Diffstat (limited to 'smoketest/scripts/cli/test_service_https.py')
-rwxr-xr-x | smoketest/scripts/cli/test_service_https.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/smoketest/scripts/cli/test_service_https.py b/smoketest/scripts/cli/test_service_https.py index 94eade2d7..f2a64627f 100755 --- a/smoketest/scripts/cli/test_service_https.py +++ b/smoketest/scripts/cli/test_service_https.py @@ -27,6 +27,7 @@ from vyos.utils.file import read_file from vyos.utils.file import write_file from vyos.utils.process import call from vyos.utils.process import process_named_running +from vyos.xml_ref import default_value from vyos.configsession import ConfigSessionError @@ -147,10 +148,8 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): @ignore_warning(InsecureRequestWarning) def test_api_auth(self): - vhost_id = 'example' address = '127.0.0.1' - port = '443' # default value - name = 'localhost' + port = default_value(base_path + ['port']) key = 'MySuperSecretVyOS' self.cli_set(base_path + ['api', 'keys', 'id', 'key-01', 'key', key]) @@ -420,7 +419,6 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): url = f'https://{address}/config-file' url_config = f'https://{address}/configure' headers = {} - tmp_file = 'tmp-config.boot' self.cli_set(base_path + ['api', 'keys', 'id', 'key-01', 'key', key]) self.cli_commit() |