Skip to content

Commit

Permalink
fix index in TestGenerateSpiloPodEnvVarswq (zalando#1084)
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Kunde <felix.kunde@zalando.de>
  • Loading branch information
FxKu and Felix Kunde authored Jul 30, 2020
1 parent aab9b0a commit 3bee590
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/cluster/k8sres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,40 +119,40 @@ func TestGenerateSpiloPodEnvVars(t *testing.T) {

expectedValuesGSBucket := []ExpectedValue{
ExpectedValue{
envIndex: 14,
envIndex: 15,
envVarConstant: "WAL_GS_BUCKET",
envVarValue: "wale-gs-bucket",
},
ExpectedValue{
envIndex: 15,
envIndex: 16,
envVarConstant: "WAL_BUCKET_SCOPE_SUFFIX",
envVarValue: "/SomeUUID",
},
ExpectedValue{
envIndex: 16,
envIndex: 17,
envVarConstant: "WAL_BUCKET_SCOPE_PREFIX",
envVarValue: "",
},
}

expectedValuesGCPCreds := []ExpectedValue{
ExpectedValue{
envIndex: 14,
envIndex: 15,
envVarConstant: "WAL_GS_BUCKET",
envVarValue: "wale-gs-bucket",
},
ExpectedValue{
envIndex: 15,
envIndex: 16,
envVarConstant: "WAL_BUCKET_SCOPE_SUFFIX",
envVarValue: "/SomeUUID",
},
ExpectedValue{
envIndex: 16,
envIndex: 17,
envVarConstant: "WAL_BUCKET_SCOPE_PREFIX",
envVarValue: "",
},
ExpectedValue{
envIndex: 17,
envIndex: 18,
envVarConstant: "GOOGLE_APPLICATION_CREDENTIALS",
envVarValue: "some_path_to_credentials",
},
Expand Down

0 comments on commit 3bee590

Please sign in to comment.