Skip to content

Commit

Permalink
Update workspace fixture for virtual framework test
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
  • Loading branch information
embik committed Jul 15, 2024
1 parent 1dad43d commit 92f52e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/virtual/framework/internalapis/fixtures/workspaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
required:
- key
- operator
type: object
type: array
x-kubernetes-list-type: atomic
matchLabels:
additionalProperties:
type: string
Expand Down
2 changes: 1 addition & 1 deletion pkg/virtual/framework/internalapis/import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ func TestImportInternalAPIs(t *testing.T) {
require.NoError(t, err)
actualContent, err := yaml.Marshal(schema)
require.NoError(t, err)
require.Empty(t, cmp.Diff(strings.Split(string(expectedContent), "\n"), strings.Split(string(actualContent), "\n")))
require.Emptyf(t, cmp.Diff(strings.Split(string(expectedContent), "\n"), strings.Split(string(actualContent), "\n")), "%s was not identical to the expected content", schema.Name)
}
}

0 comments on commit 92f52e3

Please sign in to comment.