gomega.Expect(err).To(gomega.HaveOccurred(),"failed to return error when posting self subject access review: %+v, to a backend that does not implement metadata",sar)
framework.ExpectError(err,"failed to return error when posting self subject access review: %+v, to a backend that does not implement metadata",sar)
gomega.Expect(err).To(gomega.HaveOccurred(),"create configmap %s in namespace %s should have been denied by the webhook",configmap.Name,f.Namespace.Name)
framework.ExpectError(err,"create configmap %s in namespace %s should have been denied by the webhook",configmap.Name,f.Namespace.Name)
expectedErrMsg:="the configmap contains unwanted key and value"
expectedErrMsg:="the configmap contains unwanted key and value"
gomega.Expect(err).To(gomega.HaveOccurred(),"update (PUT) admitted configmap %s in namespace %s to a non-compliant one should be rejected by webhook",allowedConfigMapName,f.Namespace.Name)
framework.ExpectError(err,"update (PUT) admitted configmap %s in namespace %s to a non-compliant one should be rejected by webhook",allowedConfigMapName,f.Namespace.Name)
gomega.Expect(err).To(gomega.HaveOccurred(),"update admitted configmap %s in namespace %s by strategic merge patch to a non-compliant one should be rejected by webhook. Patch: %+v",allowedConfigMapName,f.Namespace.Name,patch)
framework.ExpectError(err,"update admitted configmap %s in namespace %s by strategic merge patch to a non-compliant one should be rejected by webhook. Patch: %+v",allowedConfigMapName,f.Namespace.Name,patch)