Skip to content

Commit

Permalink
Merge pull request hashicorp#321 from hashicorp/rename-job
Browse files Browse the repository at this point in the history
Add -job to filename to match convention
  • Loading branch information
lkysow authored Jan 2, 2020
2 parents c57acec + 5eb9343 commit 9cc2e9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load _helpers
@test "server/EnterpriseLicense: disabled by default" {
cd `chart_dir`
local actual=$(helm template \
-x templates/enterprise-license.yaml \
-x templates/enterprise-license-job.yaml \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
[ "${actual}" = "false" ]
Expand All @@ -14,7 +14,7 @@ load _helpers
@test "server/EnterpriseLicense: disabled when servers are disabled" {
cd `chart_dir`
local actual=$(helm template \
-x templates/enterprise-license.yaml \
-x templates/enterprise-license-job.yaml \
--set 'server.enabled=false' \
--set 'server.enterpriseLicense.secretName=foo' \
--set 'server.enterpriseLicense.secretKey=bar' \
Expand All @@ -26,7 +26,7 @@ load _helpers
@test "server/EnterpriseLicense: disabled when secretName is missing" {
cd `chart_dir`
local actual=$(helm template \
-x templates/enterprise-license.yaml \
-x templates/enterprise-license-job.yaml \
--set 'server.enterpriseLicense.secretKey=bar' \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
Expand All @@ -36,7 +36,7 @@ load _helpers
@test "server/EnterpriseLicense: disabled when secretKey is missing" {
cd `chart_dir`
local actual=$(helm template \
-x templates/enterprise-license.yaml \
-x templates/enterprise-license-job.yaml \
--set 'server.enterpriseLicense.secretName=foo' \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
Expand All @@ -46,7 +46,7 @@ load _helpers
@test "server/EnterpriseLicense: enabled when secretName and secretKey is provided" {
cd `chart_dir`
local actual=$(helm template \
-x templates/enterprise-license.yaml \
-x templates/enterprise-license-job.yaml \
--set 'server.enterpriseLicense.secretName=foo' \
--set 'server.enterpriseLicense.secretKey=bar' \
. | tee /dev/stderr |
Expand All @@ -60,7 +60,7 @@ load _helpers
@test "server/EnterpriseLicense: CONSUL_HTTP_TOKEN env variable created when global.bootstrapACLs=true" {
cd `chart_dir`
local actual=$(helm template \
-x templates/enterprise-license.yaml \
-x templates/enterprise-license-job.yaml \
--set 'server.enterpriseLicense.secretName=foo' \
--set 'server.enterpriseLicense.secretKey=bar' \
--set 'global.bootstrapACLs=true' \
Expand All @@ -72,7 +72,7 @@ load _helpers
@test "server/EnterpriseLicense: init container is created when global.bootstrapACLs=true" {
cd `chart_dir`
local object=$(helm template \
-x templates/enterprise-license.yaml \
-x templates/enterprise-license-job.yaml \
--set 'server.enterpriseLicense.secretName=foo' \
--set 'server.enterpriseLicense.secretKey=bar' \
--set 'global.bootstrapACLs=true' \
Expand All @@ -91,7 +91,7 @@ load _helpers
@test "server/EnterpriseLicense: no service account specified when global.bootstrapACLS=false" {
cd `chart_dir`
local actual=$(helm template \
-x templates/enterprise-license.yaml \
-x templates/enterprise-license-job.yaml \
--set 'server.enterpriseLicense.secretName=foo' \
--set 'server.enterpriseLicense.secretKey=bar' \
. | tee /dev/stderr |
Expand All @@ -102,7 +102,7 @@ load _helpers
@test "server/EnterpriseLicense: service account specified when global.bootstrapACLS=true" {
cd `chart_dir`
local actual=$(helm template \
-x templates/enterprise-license.yaml \
-x templates/enterprise-license-job.yaml \
--set 'server.enterpriseLicense.secretName=foo' \
--set 'server.enterpriseLicense.secretKey=bar' \
--set 'global.bootstrapACLs=true' \
Expand Down
12 changes: 0 additions & 12 deletions test/unit/server-statefulset.bats
Original file line number Diff line number Diff line change
Expand Up @@ -380,18 +380,6 @@ load _helpers
[ "${actual}" = "" ]
}

@test "server/StatefulSet: gossip encryption disabled in server StatefulSet when servers are disabled" {
cd `chart_dir`
local actual=$(helm template \
-x templates/enterprise-license.yaml \
--set 'server.enabled=false' \
--set 'global.gossipEncryption.secretName=foo' \
--set 'global.gossipEncryption.secretKey=bar' \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
[ "${actual}" = "false" ]
}

@test "server/StatefulSet: gossip encryption disabled in server StatefulSet when secretName is missing" {
cd `chart_dir`
local actual=$(helm template \
Expand Down

0 comments on commit 9cc2e9d

Please sign in to comment.