forked from rook/rook
Golang maps order is not always guaranteed to be identical, which makes the table driven test to fail. Because of the nature of the maps, it is hard to predict the exact position of an element in the map. This makes the table driven test flappy. Reworked the unit test using a contains statement which achieves the same validation. Closes: https://github.com/rook/rook/issues/6522 Signed-off-by: Sébastien Han <seb@redhat.com>