]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix test
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 21 Aug 2018 17:28:27 +0000 (19:28 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 21 Aug 2018 18:20:22 +0000 (20:20 +0200)
regression-tests.api/test_TSIG.py

index ffada31fb873b652d90dd5d98987fd4fcd3c0c55..88715cf219cb33fa4cae8c960df4298e200d38bc 100644 (file)
@@ -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'])