From: Pieter Lexis Date: Tue, 21 Aug 2018 17:28:27 +0000 (+0200) Subject: Fix test X-Git-Tag: auth-4.2.0-alpha1~17^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61754ee4af5a7507eaadcb51d7e818f1513d963d;p=thirdparty%2Fpdns.git Fix test --- diff --git a/regression-tests.api/test_TSIG.py b/regression-tests.api/test_TSIG.py index ffada31fb8..88715cf219 100644 --- a/regression-tests.api/test_TSIG.py +++ b/regression-tests.api/test_TSIG.py @@ -188,6 +188,6 @@ class AuthTSIG(ApiTestCase, AuthTSIGHelperMixin): r = self.session.post(self.url("/api/v1/servers/localhost/tsigkeys"), headers={'accept': 'application/json'}, data=json.dumps(payload)) - self.assertEqual(r.status_code, 422) + self.assertEqual(r.status_code, 400) data = r.json() - self.assertIn('Unknown TSIG algorithm: ', data['error']) + self.assertIn('Invalid TSIG algorithm: ', data['error'])