Skip to content

Commit

Permalink
Fix chart tests for new envVar in 4.5.1
Browse files Browse the repository at this point in the history
Signed-off-by: Ovidijus Balkauskas <[email protected]>
  • Loading branch information
Stogas committed Mar 19, 2024
1 parent 24e1796 commit 7d5365d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions charts/k8up/test/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ func Test_Deployment_ShouldRender_EnvironmentVariables(t *testing.T) {
assert.Equalf(t, wantRepo+":"+wantTag, envs[0].Value, "Deployment does not use required Env Value from %s", wantVar)
assert.Equal(t, "TZ", envs[1].Name)
assert.Equal(t, wantTimezone, envs[1].Value)
assert.Equal(t, "BACKUP_OPERATOR_NAMESPACE", envs[3].Name)
assert.Equal(t, "metadata.namespace", envs[3].ValueFrom.FieldRef.FieldPath)
assert.Equal(t, "BACKUP_SKIP_WITHOUT_ANNOTATION", envs[3].Name)
assert.Equal(t, "BACKUP_OPERATOR_NAMESPACE", envs[4].Name)
assert.Equal(t, "metadata.namespace", envs[4].ValueFrom.FieldRef.FieldPath)
assert.Equal(t, "BACKUP_GLOBALCPU_REQUEST", envs[4].Name, "Deployment does not use configured Env Name")
assert.Equal(t, wantCpuRequest, envs[4].Value, "Deployment does not use configured Env Value")
assert.Equal(t, "VARIABLE", envs[5].Name, "Deployment does not use configured Env Name")
Expand Down

0 comments on commit 7d5365d

Please sign in to comment.