Skip to content
Snippets Groups Projects
Commit 19929151 authored by Ben Adida's avatar Ben Adida
Browse files

Added check that an email un-owned cannot be certified

parent 6c2e0b7f
No related branches found
No related tags found
No related merge requests found
......@@ -131,8 +131,16 @@ suite.addBatch({
assert.isTrue(ca.verifyChain([cert]).equals(kp.publicKey));
}
},
"cert key invoked proper arguments but incorrect email address": {
topic: wsapi.post(cert_key_url, { email: 'syncer2@somehost.com', pubkey: kp.publicKey.serialize() }),
"returns a response with a proper error content-type" : function(r, err) {
assert.strictEqual(r.code, 400);
}
}
// NOTE: db-test has more thorough tests of the algorithm behind the sync_emails API
// NOTE: db-test has more thorough tests of the algorithm behind the sync_emails API
});
start_stop.addShutdownBatches(suite);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment