e2e_node: stop using deprecated framework.ExpectEqual
This commit is contained in:
@@ -229,10 +229,10 @@ func createPodWithAppArmor(ctx context.Context, f *framework.Framework, profile
|
||||
|
||||
func expectSoftRejection(status v1.PodStatus) {
|
||||
args := []interface{}{"PodStatus: %+v", status}
|
||||
framework.ExpectEqual(status.Phase, v1.PodPending, args...)
|
||||
framework.ExpectEqual(status.Reason, "AppArmor", args...)
|
||||
gomega.Expect(status.Phase).To(gomega.Equal(v1.PodPending), args...)
|
||||
gomega.Expect(status.Reason).To(gomega.Equal("AppArmor"), args...)
|
||||
gomega.Expect(status.Message).To(gomega.ContainSubstring("AppArmor"), args...)
|
||||
framework.ExpectEqual(status.ContainerStatuses[0].State.Waiting.Reason, "Blocked", args...)
|
||||
gomega.Expect(status.ContainerStatuses[0].State.Waiting.Reason).To(gomega.Equal("Blocked"), args...)
|
||||
}
|
||||
|
||||
func isAppArmorEnabled() bool {
|
||||
|
Reference in New Issue
Block a user