outposts: fix test for config validation

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-08 17:14:05 +02:00
parent c025d64ba3
commit 45bee4b4dc

View file

@ -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(