diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-11-26 15:03:03 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-11-26 15:03:03 +0000 |
commit | c0b7a46296301a67b5f603aef00fe81251187ed6 (patch) | |
tree | cfa99237ef8df6ea600fb28a65d21d59a2083bd0 /smoketest/scripts/cli/test_vpn_sstp.py | |
parent | 0f3f4fe83da281969be38476e742bc7691ba39cd (diff) | |
download | vyos-1x-c0b7a46296301a67b5f603aef00fe81251187ed6.tar.gz vyos-1x-c0b7a46296301a67b5f603aef00fe81251187ed6.zip |
smoketest: sstp: openconnect: Replace certificates path
Diffstat (limited to 'smoketest/scripts/cli/test_vpn_sstp.py')
-rwxr-xr-x | smoketest/scripts/cli/test_vpn_sstp.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_vpn_sstp.py b/smoketest/scripts/cli/test_vpn_sstp.py index 033338685..b7b7729b2 100755 --- a/smoketest/scripts/cli/test_vpn_sstp.py +++ b/smoketest/scripts/cli/test_vpn_sstp.py @@ -18,10 +18,12 @@ import unittest from base_accel_ppp_test import BasicAccelPPPTest from vyos.util import cmd +from os import path, mkdir -ca_cert = '/tmp/ca.crt' -ssl_cert = '/tmp/server.crt' -ssl_key = '/tmp/server.key' +cert_dir = '/config/auth/' +ca_cert = f'{cert_dir}ca.crt' +ssl_cert = f'{cert_dir}server.crt' +ssl_key = f'{cert_dir}server.key' class TestVPNSSTPServer(BasicAccelPPPTest.TestCase): def setUp(self): @@ -41,6 +43,9 @@ class TestVPNSSTPServer(BasicAccelPPPTest.TestCase): super().basic_config() if __name__ == '__main__': + if not path.exists(cert_dir): + mkdir(cert_dir) + # Our SSL certificates need a subject ... subject = '/C=DE/ST=BY/O=VyOS/localityName=Cloud/commonName=vyos/' \ 'organizationalUnitName=VyOS/emailAddress=maintainers@vyos.io/' |