Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mjudeikis committed Feb 11, 2025
1 parent b2fe832 commit e5e93b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pkg/virtual/framework/internalapis/fixtures/workspaces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ spec:
type: object
type: object
mount:
description: Mount is a reference to a mount that is used to mount the
workspace. If specified, logicalcluster will not be created and the
workspace will be mounted using reference mount object.
description: Mount is a reference to a an object implementing a mounting
feature. It is used to orchestrate where the traffic, intended for
the workspace, is sent. If specified, logicalcluster will not be created
and the workspace will be mounted using reference mount object.
properties:
ref:
description: Reference is an ObjectReference to the object that
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 @@ -92,7 +92,7 @@ func TestImportInternalAPIs(t *testing.T) {
actualContent, err := yaml.Marshal(s)
require.NoError(t, err)
// If you just changed the schema and wondering "how do I make this test pass?", uncomment the following line
// os.WriteFile(path.Join("fixtures", s.Spec.Names.Plural+".yaml"), actualContent, 0644)
//os.WriteFile(path.Join("fixtures", s.Spec.Names.Plural+".yaml"), actualContent, 0644)
require.Emptyf(t, cmp.Diff(strings.Split(string(expectedContent), "\n"), strings.Split(string(actualContent), "\n")), "%s was not identical to the expected content", s.Name)
}
}

0 comments on commit e5e93b2

Please sign in to comment.