-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added help method to print out failed tests (#142)
- Loading branch information
1 parent
c93d696
commit 2ba8d5b
Showing
4 changed files
with
87 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
print_err() { | ||
if [ "$1" -ne 0 ]; then echo "$2" | grep "not ok"; fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#!/usr/bin/env bats | ||
|
||
load _helpers | ||
|
||
@test "basic-dotnet-core/.openshift" { | ||
run conftest test basic-dotnet-core/.openshift --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "basic-nginx/.openshift" { | ||
run conftest test basic-nginx/.openshift --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "basic-spring-boot-tekton/.openshift" { | ||
run conftest test basic-spring-boot-tekton/.openshift --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "basic-spring-boot/.openshift basic-tomcat/.openshift" { | ||
run conftest test basic-spring-boot/.openshift basic-tomcat/.openshift --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "blue-green-spring/.openshift" { | ||
run conftest test blue-green-spring/.openshift --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "cucumber-selenium-grid/applier/projects" { | ||
run conftest test cucumber-selenium-grid/applier/projects --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "cucumber-selenium-grid/applier/templates" { | ||
run conftest test cucumber-selenium-grid/applier/templates --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "jenkins-s2i multi-cluster-multi-branch-jee/.openshift" { | ||
run conftest test jenkins-s2i multi-cluster-multi-branch-jee/.openshift --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "multi-cluster-spring-boot/image-mirror-example/.applier/projects" { | ||
run conftest test multi-cluster-spring-boot/image-mirror-example/.applier/projects --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "multi-cluster-spring-boot/image-mirror-example/.applier/templates" { | ||
run conftest test multi-cluster-spring-boot/image-mirror-example/.applier/templates --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "multi-cluster-spring-boot/skopeo-example/.applier/projects" { | ||
run conftest test multi-cluster-spring-boot/skopeo-example/.applier/projects --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "multi-cluster-spring-boot/skopeo-example/.applier/templates" { | ||
run conftest test multi-cluster-spring-boot/skopeo-example/.applier/templates --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "secure-spring-boot/.openshift-applier/templates" { | ||
run conftest test secure-spring-boot/.openshift-applier/templates --output tap | ||
print_err "$status" "$output" | ||
[ "$status" -eq 0 ] | ||
} |
This file was deleted.
Oops, something went wrong.