You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pkg/storage/migrations/migration_test.go
+2-2
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ func validateMigratedInstallations(ctx context.Context, t *testing.T, c *config.
153
153
assert.Empty(t, inst.Labels, "We didn't allow setting labels on installations in v0, so this can't be populated")
154
154
assert.Empty(t, inst.CredentialSets, "We didn't track credential sets used when running a bundle in v0, so this can't be populated")
155
155
assert.Empty(t, inst.ParameterSets, "We didn't track parameter sets used when running a bundle in v0, so this can't be populated")
156
-
assert.Empty(t, inst.Parameters.Parameters, "We didn't track manually specified parameters when running a bundle in v0, so this can't be populated")
156
+
assert.Equal(t, 0, inst.Parameters.Len(), "We didn't track manually specified parameters when running a bundle in v0, so this can't be populated")
157
157
158
158
// Validate the installation status, which is calculated based on the runs and their results
159
159
assert.Equal(t, "2022-04-28T16:09:42.65907-05:00", inst.Status.Created.Format(time.RFC3339Nano), "Created timestamp should be set to the timestamp of the first run")
@@ -185,7 +185,7 @@ func validateMigratedInstallations(ctx context.Context, t *testing.T, c *config.
185
185
assert.Empty(t, lastRun.Custom, "We didn't set custom datadata on claims in v0, so this can't be populated")
186
186
assert.Equal(t, "2022-04-29T16:13:20.48026-05:00", lastRun.Created.Format(time.RFC3339Nano), "incorrect run created timestamp")
187
187
assert.Empty(t, lastRun.ParameterSets, "We didn't track run parameter sets in v0, so this can't be populated")
188
-
assert.Empty(t, lastRun.ParameterOverrides, "We didn't track run parameter overrides in v0, so this can't be populated")
188
+
assert.Equal(t, 0, lastRun.ParameterOverrides.Len(), "We didn't track run parameter overrides in v0, so this can't be populated")
189
189
assert.Empty(t, lastRun.CredentialSets, "We didn't track run credential sets in v0, so this can't be populated")
190
190
assert.Equal(t, 1, lastRun.Parameters.Len(), "expected one parameter set on the run")
0 commit comments