From 55324aa549de4575c09853ed2f1e7f44eb8f180c Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Mon, 7 Oct 2024 17:31:09 +0200 Subject: [PATCH] Assert TerraForm runs --- test/test_terraform.py | 5 +++++ test/test_user.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 test/test_terraform.py diff --git a/test/test_terraform.py b/test/test_terraform.py new file mode 100644 index 0000000..dcb7bc0 --- /dev/null +++ b/test/test_terraform.py @@ -0,0 +1,5 @@ +import pytest + +def test_terraform(host): + assert 'Terraform v' in host.run('terraform version').stdout + assert 'on linux_' in host.run('terraform version').stdout diff --git a/test/test_user.py b/test/test_user.py index e34322c..80718f8 100644 --- a/test/test_user.py +++ b/test/test_user.py @@ -1,6 +1,6 @@ import pytest -def test_user_app(host): +def test_user_runner(host): userName = 'runner' groupName = 'runner' homeDir = '/home/runner'