Skip to content

Commit c237804

Browse files
authored
Merge pull request kubernetes#92755 from chelseychen/event-e2e-conformance
Promote Event CRUD tests to conformance
2 parents 43fbe17 + 7e04ffb commit c237804

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

test/conformance/testdata/conformance.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,6 +1504,21 @@
15041504
the replicaset to 2. Number of running instances of the Pod MUST be 2.
15051505
release: v1.9
15061506
file: test/e2e/kubectl/kubectl.go
1507+
- testname: New Event resource lifecycle, testing a list of events
1508+
codename: '[sig-instrumentation] Events API should delete a collection of events
1509+
[Conformance]'
1510+
description: Create a list of events, the events MUST exist. The events are deleted
1511+
and MUST NOT show up when listing all events.
1512+
release: v1.19
1513+
file: test/e2e/instrumentation/events.go
1514+
- testname: New Event resource lifecycle, testing a single event
1515+
codename: '[sig-instrumentation] Events API should ensure that an event can be fetched,
1516+
patched, deleted, and listed [Conformance]'
1517+
description: Create an event, the event MUST exist. The event is patched with a
1518+
new note, the check MUST have the update note. The event is deleted and MUST NOT
1519+
show up when listing all events.
1520+
release: v1.19
1521+
file: test/e2e/instrumentation/events.go
15071522
- testname: DNS, cluster
15081523
codename: '[sig-network] DNS should provide /etc/hosts entries for the cluster [LinuxOnly]
15091524
[Conformance]'

test/e2e/instrumentation/events.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ var _ = common.SIGDescribe("Events API", func() {
8686

8787
/*
8888
Release : v1.19
89-
Testname: Event resource lifecycle
89+
Testname: New Event resource lifecycle, testing a single event
9090
Description: Create an event, the event MUST exist.
9191
The event is patched with a new note, the check MUST have the update note.
9292
The event is deleted and MUST NOT show up when listing all events.
9393
*/
94-
ginkgo.It("should ensure that an event can be fetched, patched, deleted, and listed", func() {
94+
framework.ConformanceIt("should ensure that an event can be fetched, patched, deleted, and listed", func() {
9595
eventName := "event-test"
9696

9797
ginkgo.By("creating a test event")
@@ -160,7 +160,13 @@ var _ = common.SIGDescribe("Events API", func() {
160160
framework.ExpectEqual(foundCreatedEvent, false, "should not have found test event after deletion")
161161
})
162162

163-
ginkgo.It("should delete a collection of events", func() {
163+
/*
164+
Release : v1.19
165+
Testname: New Event resource lifecycle, testing a list of events
166+
Description: Create a list of events, the events MUST exist.
167+
The events are deleted and MUST NOT show up when listing all events.
168+
*/
169+
framework.ConformanceIt("should delete a collection of events", func() {
164170
eventNames := []string{"test-event-1", "test-event-2", "test-event-3"}
165171

166172
ginkgo.By("Create set of events")

0 commit comments

Comments
 (0)