rename cloudron_token to appstore_api_token
This commit is contained in:
@@ -413,7 +413,7 @@ xdescribe('App API', function () {
|
||||
var fake1 = nock(settings.apiServerOrigin()).get('/api/v1/apps/' + APP_STORE_ID).reply(200, { manifest: APP_MANIFEST });
|
||||
var fake2 = nock(settings.apiServerOrigin()).post(function (uri) { return uri.indexOf('/api/v1/cloudronapps') >= 0; }, (body) => body.appstoreId === APP_STORE_ID && body.manifestId === APP_MANIFEST.id && body.appId).reply(201, { });
|
||||
|
||||
await settings.setCloudronToken(USER_1_APPSTORE_TOKEN);
|
||||
await settings.setAppstoreApiToken(USER_1_APPSTORE_TOKEN);
|
||||
|
||||
const res = await superagent.post(SERVER_URL + '/api/v1/apps/install')
|
||||
.query({ access_token: token })
|
||||
|
||||
Reference in New Issue
Block a user