Improved validation of the "action" object.

Now it enforces the mutual exclusivity of "pass", "proxy", and "share" options.
This commit is contained in:
Valentin Bartenev
2020-03-03 20:37:47 +03:00
parent f99d20ad39
commit a60f856ce2
2 changed files with 41 additions and 18 deletions

View File

@@ -288,8 +288,6 @@ class TestRouting(TestApplicationProto):
)
def test_routes_route_pass_absent(self):
self.skip_alerts.append(r'failed to apply new conf')
self.assertIn(
'error',
self.conf([{"match": {"method": "GET"}, "action": {}}], 'routes'),