diff --git a/src/routes/test/apps-test.js b/src/routes/test/apps-test.js index 9f6d9a455..1a025f309 100644 --- a/src/routes/test/apps-test.js +++ b/src/routes/test/apps-test.js @@ -623,9 +623,9 @@ describe('App installation', function () { expect(data.Config.Env).to.contain('WEBADMIN_ORIGIN=' + config.adminOrigin()); expect(data.Config.Env).to.contain('API_ORIGIN=' + config.adminOrigin()); expect(data.Config.Env).to.contain('CLOUDRON=1'); - clientdb.getByAppId('addon-' + appResult.id, function (error, client) { + clientdb.getByAppId('addon-oauth-' + appResult.id, function (error, client) { expect(error).to.not.be.ok(); - expect(client.id.length).to.be(46); // cid-addon- + 32 hex chars (128 bits) + 4 hyphens + expect(client.id.length).to.be(52); // cid-addon-oauth- + 32 hex chars (128 bits) + 4 hyphens expect(client.clientSecret.length).to.be(64); // 32 hex chars (256 bits) expect(data.Config.Env).to.contain('OAUTH_CLIENT_ID=' + client.id); expect(data.Config.Env).to.contain('OAUTH_CLIENT_SECRET=' + client.clientSecret);