Skip to content

Commit

Permalink
fixing integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
so-sahu committed Aug 13, 2024
1 parent ff6a5e1 commit 63c2dd3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/server/event_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,14 @@ var _ = Describe("ListEvents", func() {
resp, err := machineClient.ListEvents(ctx, &iri.ListEventsRequest{})
Expect(err).NotTo(HaveOccurred())

Expect(resp.Events).To(ConsistOf(
Expect(resp.Events).To(ContainElement(
HaveField("Spec", SatisfyAll(
HaveField("InvolvedObjectMeta.Id", Equal(createResp.Machine.Metadata.Id)),
HaveField("Reason", Equal("NoIgnitionData")),
HaveField("Message", Equal("Machine does not have ignition data")),
HaveField("Type", Equal(corev1.EventTypeWarning)),
)),
),
)
))

By("listing the machine events with matching label and time filters")
resp, err = machineClient.ListEvents(ctx, &iri.ListEventsRequest{Filter: &iri.EventFilter{
Expand Down

0 comments on commit 63c2dd3

Please sign in to comment.