Ver Fonte

fix(api): test utf8-subname rrset creation

relates to #102, however #102 is caused by database configuration and on
development systems not reproducible.
Nils Wisiol há 7 anos atrás
pai
commit
111537028d
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      test/e2e/spec/api_spec.js

+ 7 - 0
test/e2e/spec/api_spec.js

@@ -277,6 +277,13 @@ describe("API", function () {
                         )).to.have.status(404);
                 });
 
+                it("cannot set unicode RRsets", function () {
+                    return expect(chakram.post(
+                            '/domains/' + domain + '/rrsets/',
+                            {'subname': '想不出来', 'type': 'A', 'records': ['127.0.0.1'], 'ttl': 60}
+                        )).to.have.status(422);
+                });
+
                 describe("can set a wildcard AAAA RRset with multiple records", function () {
                     before(function () {
                         return chakram.post(