Skip to content

Commit

Permalink
FilestoreInstance: mock and normalization updates
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Jan 26, 2025
1 parent 731f678 commit 6bbd7a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/e2e/normalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ func normalizeKRMObject(t *testing.T, u *unstructured.Unstructured, project test
visitor.removePaths.Insert(".status.observedState.state") // data transfer run state, which depends on timing
}

if u.GetKind() == "FilestoreInstance" {
visitor.replacePaths[".status.observedState.networks[].ipAddresses"] = []string{"10.20.30.1"}
}

// TODO: This should not be needed, we want to avoid churning the kube objects
visitor.sortSlices.Insert(".spec.access")
visitor.sortSlices.Insert(".spec.nodeConfig.oauthScopes")
Expand Down Expand Up @@ -858,7 +862,7 @@ func normalizeHTTPResponses(t *testing.T, events test.LogEntries) {
// Filestore
{
visitor.replacePaths[".networks[].reservedIpRange"] = "10.20.30.0/24"
visitor.replacePaths[".networks[].ipAddresses"] = "10.20.30.1"
visitor.replacePaths[".networks[].ipAddresses"] = []string{"10.20.30.1"}
visitor.replacePaths[".response.networks[].reservedIpRange"] = "10.20.30.0/24"
visitor.replacePaths[".response.networks[].ipAddresses"] = []string{"10.20.30.1"}
}
Expand Down

0 comments on commit 6bbd7a6

Please sign in to comment.