Esempio n. 1
0
 def test_validate_relation(self) -> NoReturn:
     """Testing relation data scenario."""
     relation_state = {
         "mongodb_uri": "norelation_mongo",
         "mongodb_host": None
     }
     with self.assertRaises(ValueError):
         pod_spec._validate_relation_state(relation_state)
Esempio n. 2
0
 def test_validate_relation(self) -> NoReturn:
     """Testing relation data scenario."""
     relation_state = {"user": "******"}
     with self.assertRaises(ValueError):
         pod_spec._validate_relation_state(relation_state)