mirror of
https://github.com/rancher/os.git
synced 2025-07-01 09:11:48 +00:00
Because users should be explicit about their docker TLS certs. Also, re-generate the key and cert files when `ros tls gen` is run (used to be cached).
23 lines
564 B
Python
23 lines
564 B
Python
import pytest
|
|
import rostest.util as u
|
|
from rostest.util import SSH
|
|
|
|
ssh_command = ['./scripts/ssh', '--qemu', '--key', './tests/integration/assets/test.key']
|
|
cloud_config_path = './tests/integration/assets/test_02/cloud-config.yml'
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def qemu(request):
|
|
q = u.run_qemu(request, ['--cloud-config', cloud_config_path])
|
|
u.flush_out(q.stdout)
|
|
return q
|
|
|
|
|
|
@pytest.mark.timeout(40)
|
|
def test_docker_tls_args(qemu):
|
|
SSH(qemu, ssh_command).check_call('''
|
|
set -e -x
|
|
sudo ros tls gen
|
|
docker --tlsverify version
|
|
'''.strip())
|