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)
def test_validate_relation(self) -> NoReturn: """Testing relation data scenario.""" relation_state = {"user": "******"} with self.assertRaises(ValueError): pod_spec._validate_relation_state(relation_state)