mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 20:12:43 +00:00
helm consul toegevoegd ma nie als submodule?
This commit is contained in:
19
consul-helm/test/acceptance/server.bats
Normal file
19
consul-helm/test/acceptance/server.bats
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
load _helpers
|
||||
|
||||
@test "server: default, comes up healthy" {
|
||||
helm_install
|
||||
wait_for_ready $(name_prefix)-consul-server-0
|
||||
|
||||
# Verify there are three servers
|
||||
local server_count=$(kubectl exec "$(name_prefix)-consul-server-0" consul members |
|
||||
grep server |
|
||||
wc -l)
|
||||
[ "${server_count}" -eq "3" ]
|
||||
|
||||
helm test consul
|
||||
|
||||
# Clean up
|
||||
helm_delete
|
||||
}
|
Reference in New Issue
Block a user