Merge pull request #92755 from chelseychen/event-e2e-conformance

Promote Event CRUD tests to conformance
This commit is contained in:
Kubernetes Prow Robot 2020-07-20 05:50:51 -07:00 committed by GitHub
commit c237804533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 3 deletions

View File

@ -1504,6 +1504,21 @@
the replicaset to 2. Number of running instances of the Pod MUST be 2. the replicaset to 2. Number of running instances of the Pod MUST be 2.
release: v1.9 release: v1.9
file: test/e2e/kubectl/kubectl.go file: test/e2e/kubectl/kubectl.go
- testname: New Event resource lifecycle, testing a list of events
codename: '[sig-instrumentation] Events API should delete a collection of events
[Conformance]'
description: Create a list of events, the events MUST exist. The events are deleted
and MUST NOT show up when listing all events.
release: v1.19
file: test/e2e/instrumentation/events.go
- testname: New Event resource lifecycle, testing a single event
codename: '[sig-instrumentation] Events API should ensure that an event can be fetched,
patched, deleted, and listed [Conformance]'
description: Create an event, the event MUST exist. The event is patched with a
new note, the check MUST have the update note. The event is deleted and MUST NOT
show up when listing all events.
release: v1.19
file: test/e2e/instrumentation/events.go
- testname: DNS, cluster - testname: DNS, cluster
codename: '[sig-network] DNS should provide /etc/hosts entries for the cluster [LinuxOnly] codename: '[sig-network] DNS should provide /etc/hosts entries for the cluster [LinuxOnly]
[Conformance]' [Conformance]'

View File

@ -86,12 +86,12 @@ var _ = common.SIGDescribe("Events API", func() {
/* /*
Release : v1.19 Release : v1.19
Testname: Event resource lifecycle Testname: New Event resource lifecycle, testing a single event
Description: Create an event, the event MUST exist. Description: Create an event, the event MUST exist.
The event is patched with a new note, the check MUST have the update note. The event is patched with a new note, the check MUST have the update note.
The event is deleted and MUST NOT show up when listing all events. The event is deleted and MUST NOT show up when listing all events.
*/ */
ginkgo.It("should ensure that an event can be fetched, patched, deleted, and listed", func() { framework.ConformanceIt("should ensure that an event can be fetched, patched, deleted, and listed", func() {
eventName := "event-test" eventName := "event-test"
ginkgo.By("creating a test event") ginkgo.By("creating a test event")
@ -160,7 +160,13 @@ var _ = common.SIGDescribe("Events API", func() {
framework.ExpectEqual(foundCreatedEvent, false, "should not have found test event after deletion") framework.ExpectEqual(foundCreatedEvent, false, "should not have found test event after deletion")
}) })
ginkgo.It("should delete a collection of events", func() { /*
Release : v1.19
Testname: New Event resource lifecycle, testing a list of events
Description: Create a list of events, the events MUST exist.
The events are deleted and MUST NOT show up when listing all events.
*/
framework.ConformanceIt("should delete a collection of events", func() {
eventNames := []string{"test-event-1", "test-event-2", "test-event-3"} eventNames := []string{"test-event-1", "test-event-2", "test-event-3"}
ginkgo.By("Create set of events") ginkgo.By("Create set of events")