Skip to content

Commit

Permalink
Change unit test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman committed Sep 19, 2024
1 parent eb2c025 commit b411fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/policy/secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func TestGetPolicyInputsWithSecretsAndStreams(t *testing.T) {
result, keys, _ := getPolicyInputsWithSecrets(context.TODO(), &pData, bulker)

assert.Equal(t, expectedResult, result)
assert.Equal(t, []string{"inputs[0].package_var_secret", "inputs[0].input_var_secret", "inputs[1].streams[0].package_var_secret", "inputs[1].streams[0].input_var_secret", "inputs[1].streams[0].stream_var_secret"}, keys)
assert.ElementsMatch(t, []string{"inputs[0].package_var_secret", "inputs[0].input_var_secret", "inputs[1].streams[0].package_var_secret", "inputs[1].streams[0].input_var_secret", "inputs[1].streams[0].stream_var_secret"}, keys)
assert.Nil(t, pData.SecretReferences)
}

Expand Down

0 comments on commit b411fea

Please sign in to comment.