rename test so it will get picked up and fix assertions
@@ -706,7 +706,7 @@ class TestCalicoctlCommands(TestBase):
rc = calicoctl("delete networkpolicy %s" % name(rev3))
rc.assert_no_error()
- def test_get(self):
+ def test_disallow_crud_on_knp_defaults(self):
"""
Test that we disallow CRUD on a knp.default prefixed NetworkPolicy.
"""
@@ -718,17 +718,14 @@ class TestCalicoctlCommands(TestBase):
rc.assert_error(text=KUBERNETES_NP)
rc = calicoctl("apply", data=k8s_np)
- rc.assert_error(text=NOT_SUPPORTED)
- rc.assert_error(text=KUBERNETES_NP)
+ rc.assert_error(text=NOT_FOUND)
rc = calicoctl("replace", data=k8s_np)
- rc.assert_error(text=NOT_SUPPORTED)
- rc.assert_error(text=KUBERNETES_NP)
+ rc.assert_error(text=NOT_FOUND)
rc = calicoctl("delete", data=k8s_np)
rc.assert_error(text=NOT_SUPPORTED)
rc.assert_error(text=KUBERNETES_NP)
-
#
#
# class TestCreateFromFile(TestBase):
