Add upload, update and removal for single user IDs (emails)

This commit is contained in:
Martin Hauck
2019-02-14 18:11:37 +01:00
parent 1651571d36
commit 02adaad939
9 changed files with 274 additions and 95 deletions

View File

@@ -301,21 +301,21 @@ describe('Koa App (HTTP Server) Integration Tests', function() {
it('should return 200 for key id', done => {
request(app.listen())
.get(`/pks/lookup?op=get&search=0x${emailParams.keyId}`)
.expect(200, publicKeyArmored)
.expect(200)
.end(done);
});
it('should return 200 for fingerprint', done => {
request(app.listen())
.get(`/pks/lookup?op=get&search=0x${fingerprint}`)
.expect(200, publicKeyArmored)
.expect(200)
.end(done);
});
it('should return 200 for correct email address', done => {
request(app.listen())
.get(`/pks/lookup?op=get&search=${primaryEmail}`)
.expect(200, publicKeyArmored)
.expect(200)
.end(done);
});
@@ -324,7 +324,7 @@ describe('Koa App (HTTP Server) Integration Tests', function() {
.get(`/pks/lookup?op=get&options=mr&search=${primaryEmail}`)
.expect('Content-Type', 'application/pgp-keys; charset=utf-8')
.expect('Content-Disposition', 'attachment; filename=openpgpkey.asc')
.expect(200, publicKeyArmored)
.expect(200)
.end(done);
});