From 59163710af9d47557feec8660357a6bf310d0a1d Mon Sep 17 00:00:00 2001 From: ansgarz Date: Thu, 9 Nov 2023 09:41:11 +0100 Subject: [PATCH] fix tests --- .../provs/framework/core/ProvTest.kt | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/test/kotlin/org/domaindrivenarchitecture/provs/framework/core/ProvTest.kt b/src/test/kotlin/org/domaindrivenarchitecture/provs/framework/core/ProvTest.kt index 4d10faa..051fe2e 100644 --- a/src/test/kotlin/org/domaindrivenarchitecture/provs/framework/core/ProvTest.kt +++ b/src/test/kotlin/org/domaindrivenarchitecture/provs/framework/core/ProvTest.kt @@ -33,33 +33,34 @@ internal class ProvTest { assertTrue(res) } - @ContainerTest + @Test fun sh() { // given val script = """ # test some script commands - - ping -c1 hetzner.com - echo something + + echo something1 + pwd + echo something3 """ // when - val res = Prov.newInstance(name = "testing").sh(script).success + val res = Prov.newInstance(name = "provs_test").sh(script).success // then assertTrue(res) } @ContainerTest - @NonCi + @NonCi // sudo might not be available fun sh_with_dir_and_sudo() { // given val script = """ # test some script commands - ping -c1 hetzner.com - echo something - echo 1 # comment behind command + pwd + echo something1 + echo something2 # with comment behind command """ // when