When attempting to unshare a node from the primary namespace, return

errorMachineNotShared, not errorSameNamespace. Add test for same.
This commit is contained in:
Ward Vandewege committed 2021-10-24 17:50:21 -04:00
1 parent 6d162eeff9
commit c8e1afb14b
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -86,6 +86,9 @@ func (s *Suite) TestUnshare(c *check.C) {
err = h.RemoveSharedMachineFromNamespace(m2, n1)
c.Assert(err, check.Equals, errorMachineNotShared)
err = h.RemoveSharedMachineFromNamespace(m1, n1)
c.Assert(err, check.Equals, errorMachineNotShared)
}
func (s *Suite) TestAlreadyShared(c *check.C) {