From ae85134803feaaf347fa1a5ea0bd6c1887b2e48a Mon Sep 17 00:00:00 2001 From: Maxime Le Conte des Floris Date: Sat, 10 Dec 2022 20:34:08 +0100 Subject: [PATCH] remove venom tests & test data --- tests/test-project/index.html | 12 ------------ tests/venom/0_init.yml | 13 ------------- tests/venom/auth.yml | 19 ------------------- tests/venom/deploy.yml | 10 ---------- tests/venom/list.yml | 17 ----------------- 5 files changed, 71 deletions(-) delete mode 100644 tests/test-project/index.html delete mode 100644 tests/venom/0_init.yml delete mode 100644 tests/venom/auth.yml delete mode 100644 tests/venom/deploy.yml delete mode 100644 tests/venom/list.yml diff --git a/tests/test-project/index.html b/tests/test-project/index.html deleted file mode 100644 index 17441da..0000000 --- a/tests/test-project/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Hello world - - - Hello world! - - \ No newline at end of file diff --git a/tests/venom/0_init.yml b/tests/venom/0_init.yml deleted file mode 100644 index 6045017..0000000 --- a/tests/venom/0_init.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: initialize venom tests -testcases: -- name: build owh - steps: - - type: exec - script: | - cd ../.. - go build -o {{.owh}} . - - assertions: - - result.code ShouldEqual 0 - - result.systemout ShouldEqual "" - - result.systemerr ShouldEqual "" \ No newline at end of file diff --git a/tests/venom/auth.yml b/tests/venom/auth.yml deleted file mode 100644 index 83247e1..0000000 --- a/tests/venom/auth.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: auth -testcases: -- name: unauthenticated deploy - steps: - - script: "{{.owh}} deploy" - type: exec - assertions: - - result.code ShouldEqual 1 - - "result.systemout ShouldContainSubstring Please run: owh login first" - - result.systemerr ShouldEqual "" - -- name: unauthenticated deploy in CI - steps: - - script: "CI=1 {{.owh}} deploy" - type: exec - assertions: - - result.code ShouldEqual 1 - - "result.systemout ShouldContainSubstring To use owh in automation, set the OWH_CONSUMER_KEY environment variable." - - result.systemerr ShouldEqual "" diff --git a/tests/venom/deploy.yml b/tests/venom/deploy.yml deleted file mode 100644 index dabe495..0000000 --- a/tests/venom/deploy.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: deploy -testcases: -- name: deploy - steps: - - script: OWH_HOSTING="lhudfzo.cluster031.hosting.ovh.net" OWH_CANONICAL_DOMAIN="test.mlcdf.fr" {{.owh}} deploy --dir tests/test-project - type: exec - assertions: - - result.code ShouldEqual 1 - - "result.systemout ShouldContainSubstring Please set a hosting via the --hosting flag or by running: owh hosting myhosting" - - result.systemerr ShouldEqual "" diff --git a/tests/venom/list.yml b/tests/venom/list.yml deleted file mode 100644 index 520c115..0000000 --- a/tests/venom/list.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: domain:list -testcases: -- name: list without hosting - steps: - - script: "{{.owh}} domains:list" - type: exec - assertions: - - result.code ShouldEqual 1 - - "result.systemout ShouldContainSubstring Please set a hosting via the --hosting flag or by running: owh hosting myhosting" - - result.systemerr ShouldEqual "" - -- name: domain:list with hosting - steps: - - script: "{{.owh}} domains:list --hosting lhudfzo.cluster031.hosting.ovh.net" - type: exec - assertions: - - result.code ShouldEqual 0