test_02_tls.py 564 B

1234567891011121314151617181920212223
  1. import pytest
  2. import rostest.util as u
  3. from rostest.util import SSH
  4. ssh_command = ['./scripts/ssh', '--qemu', '--key', './tests/integration/assets/test.key']
  5. cloud_config_path = './tests/integration/assets/test_02/cloud-config.yml'
  6. @pytest.fixture(scope="module")
  7. def qemu(request):
  8. q = u.run_qemu(request, ['--cloud-config', cloud_config_path])
  9. u.flush_out(q.stdout)
  10. return q
  11. @pytest.mark.timeout(40)
  12. def test_docker_tls_args(qemu):
  13. SSH(qemu, ssh_command).check_call('''
  14. set -e -x
  15. sudo ros tls gen
  16. docker --tlsverify version
  17. '''.strip())