Fix upgrade test (#5021)

A conflict between #4911 and #4737 caused unit test to be broken.

#4737 added a new test to `upgrade_test.go` and the changes in
#4911 updated all of these test to ignore differences in the config
overrides secret.  Since these two PRs merged in parallel, the new
test was missing this update.

Update the new test to also ignore differences in the config overrides
secret as the other ones do.

Signed-off-by: Alex Leong <alex@buoyant.io>
This commit is contained in:
Alex Leong 2020-09-29 12:41:42 -07:00 committed by GitHub
parent 7c08fffd8a
commit 788479b7b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -390,6 +390,9 @@ func TestUpgradeWebhookCrtsNameChange(t *testing.T) {
expectedManifests := parseManifestList(expected)
upgradeManifests := parseManifestList(upgrade.String())
for id, diffs := range diffManifestLists(expectedManifests, upgradeManifests) {
if id == overridesSecret {
continue
}
for _, diff := range diffs {
t.Errorf("Unexpected diff in %s:\n%s", id, diff.String())
}