Skip to content

Commit

Permalink
fix failing unit test, also making the unit
Browse files Browse the repository at this point in the history
test more representative of the final config
object

Signed-off-by: Daniel Kiptoon <[email protected]>
  • Loading branch information
KiptoonKipkurui committed Nov 18, 2023
1 parent ea4c118 commit 3cf9449
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions api/v1alpha1/meshsync_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ var _ = Describe("The test case for the meshsync CRDs", func() {
Namespace: "default",
},
Data: map[string]string{
"blacklist": "blacklist",
"global": "global-configs",
"local": "global-configs",
"blacklist": "",
"whitelist": "[{\"Resource\":\"namespaces.v1.\",\"Events\":[\"ADDED\",\"DELETE\"]},{\"Resource\":\"replicasets.v1.apps\",\"Events\":[\"ADDED\",\"DELETE\"]},{\"Resource\":\"pods.v1.\",\"Events\":[\"MODIFIED\"]}]",
},
},
},
Expand Down Expand Up @@ -106,9 +105,8 @@ var _ = Describe("The test case for the meshsync CRDs", func() {
Namespace: "default",
},
Data: map[string]string{
"blacklist": "blacklist",
"listener": "global-configs",
"pipeline": "global-configs",
"blacklist": "",
"whitelist": "[{\"Resource\":\"namespaces.v1.\",\"Events\":[\"ADDED\",\"DELETE\"]},{\"Resource\":\"replicasets.v1.apps\",\"Events\":[\"ADDED\",\"DELETE\"]},{\"Resource\":\"pods.v1.\",\"Events\":[\"MODIFIED\"]}]",
},
}
Expect(configMap).To(Equal(expectedConfigMap))
Expand Down

0 comments on commit 3cf9449

Please sign in to comment.