outposts: fix test for config validation
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
c025d64ba3
commit
45bee4b4dc
|
@ -63,7 +63,7 @@ class TestOutpostServiceConnectionsAPI(APITestCase):
|
||||||
provider = ProxyProvider.objects.create(
|
provider = ProxyProvider.objects.create(
|
||||||
name="test", authorization_flow=Flow.objects.first()
|
name="test", authorization_flow=Flow.objects.first()
|
||||||
)
|
)
|
||||||
invalid = OutpostSerializer(data={"name": "foo", "providers": [provider.pk], "config": {}})
|
invalid = OutpostSerializer(data={"name": "foo", "providers": [provider.pk], "config": ""})
|
||||||
self.assertFalse(invalid.is_valid())
|
self.assertFalse(invalid.is_valid())
|
||||||
self.assertIn("config", invalid.errors)
|
self.assertIn("config", invalid.errors)
|
||||||
valid = OutpostSerializer(
|
valid = OutpostSerializer(
|
||||||
|
|
Reference in New Issue