Skip to content

Commit

Permalink
fix pull secret check in pull tests (#4134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell authored Nov 15, 2023
1 parent 53cac84 commit b92c4a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/tests/pull/pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ func TestKotsPull(t *testing.T) {
require.NoError(t, err, wantPath)
}

if strings.HasSuffix(wantPath, "pullsecrets.yaml") {
// pull secret patches are not generated in a deterministic order
gotPullSecrets := strings.Split(contentsString, "---\n")
wantPullSecrets := strings.Split(wantContentsString, "---\n")
require.ElementsMatch(t, wantPullSecrets, gotPullSecrets)
return nil
}

assert.Equal(t, wantContentsString, contentsString, wantPath)
return nil
})
Expand Down

0 comments on commit b92c4a9

Please sign in to comment.