2017-11-20 19:59:23 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
2015-07-20 00:09:47 -07:00
|
|
|
/* global it:false */
|
|
|
|
|
/* global describe:false */
|
|
|
|
|
/* global before:false */
|
|
|
|
|
/* global after:false */
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const common = require('./common.js'),
|
2019-07-25 15:43:51 -07:00
|
|
|
constants = require('../../constants.js'),
|
2015-07-20 00:09:47 -07:00
|
|
|
expect = require('expect.js'),
|
2017-11-20 19:59:23 +01:00
|
|
|
superagent = require('superagent');
|
2015-07-20 00:09:47 -07:00
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const BACKUP_FOLDER = '/tmp/backup_test';
|
2015-07-20 00:09:47 -07:00
|
|
|
|
|
|
|
|
describe('Settings API', function () {
|
2021-08-12 16:27:31 -07:00
|
|
|
const { setup, cleanup, serverUrl, owner } = common;
|
|
|
|
|
|
2015-07-20 00:09:47 -07:00
|
|
|
before(setup);
|
|
|
|
|
after(cleanup);
|
|
|
|
|
|
2020-08-19 21:39:58 -07:00
|
|
|
describe('autoupdate_pattern', function () {
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can get app auto update pattern (default)', async function () {
|
|
|
|
|
const response = await superagent.get(`${serverUrl}/api/v1/settings/autoupdate_pattern`)
|
|
|
|
|
.query({ access_token: owner.token });
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
|
|
|
|
expect(response.body.pattern).to.be.ok();
|
2015-07-20 00:09:47 -07:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set autoupdate_pattern without pattern', async function () {
|
|
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/autoupdate_pattern`)
|
|
|
|
|
.query({ access_token: owner.token })
|
|
|
|
|
.ok(() => true);
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2015-07-20 00:09:47 -07:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can set autoupdate_pattern', async function () {
|
|
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/autoupdate_pattern`)
|
|
|
|
|
.query({ access_token: owner.token })
|
|
|
|
|
.send({ pattern: '00 30 11 * * 1-5' });
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
2015-07-20 00:09:47 -07:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can get auto update pattern', async function () {
|
|
|
|
|
const response = await superagent.get(`${serverUrl}/api/v1/settings/autoupdate_pattern`)
|
|
|
|
|
.query({ access_token: owner.token });
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
|
|
|
|
expect(response.body.pattern).to.be('00 30 11 * * 1-5');
|
2019-03-22 15:33:25 -07:00
|
|
|
});
|
2015-07-20 00:09:47 -07:00
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can set autoupdate_pattern to never', async function () {
|
|
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/autoupdate_pattern`)
|
|
|
|
|
.query({ access_token: owner.token })
|
|
|
|
|
.send({ pattern: constants.AUTOUPDATE_PATTERN_NEVER });
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
2019-03-22 15:33:25 -07:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can get auto update pattern', async function () {
|
|
|
|
|
const response = await superagent.get(`${serverUrl}/api/v1/settings/autoupdate_pattern`)
|
|
|
|
|
.query({ access_token: owner.token });
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
|
|
|
|
expect(response.body.pattern).to.be(constants.AUTOUPDATE_PATTERN_NEVER);
|
2015-07-20 00:09:47 -07:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set invalid autoupdate_pattern', async function () {
|
|
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/autoupdate_pattern`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2018-01-18 13:41:10 -08:00
|
|
|
.send({ pattern: '1 3 x 5 6' })
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2015-07-20 00:09:47 -07:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
2016-05-03 12:10:16 -07:00
|
|
|
describe('time_zone', function () {
|
2021-08-12 16:27:31 -07:00
|
|
|
it('succeeds', async function () {
|
|
|
|
|
const response = await superagent.get(`${serverUrl}/api/v1/settings/time_zone`)
|
|
|
|
|
.query({ access_token: owner.token });
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
|
|
|
|
expect(response.body.timeZone).to.be('America/Los_Angeles');
|
2016-05-03 12:10:16 -07:00
|
|
|
});
|
|
|
|
|
});
|
2020-05-28 21:41:54 +02:00
|
|
|
|
|
|
|
|
describe('backup_config', function () {
|
|
|
|
|
// keep in sync with defaults in settings.js
|
|
|
|
|
let defaultConfig = {
|
|
|
|
|
provider: 'filesystem',
|
|
|
|
|
backupFolder: '/var/backups',
|
|
|
|
|
format: 'tgz',
|
|
|
|
|
encryption: null,
|
|
|
|
|
retentionPolicy: { keepWithinSecs: 2 * 24 * 60 * 60 }, // 2 days
|
2020-07-29 09:34:23 -07:00
|
|
|
schedulePattern: '00 00 23 * * *' // every day at 11pm
|
2020-05-28 21:41:54 +02:00
|
|
|
};
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can get backup_config (default)', async function () {
|
|
|
|
|
const response = await superagent.get(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token });
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
|
|
|
|
expect(response.body).to.eql(defaultConfig);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config without provider', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
delete tmp.provider;
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with invalid provider', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.provider = 'invalid provider';
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config without schedulePattern', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-07-29 09:34:23 -07:00
|
|
|
delete tmp.schedulePattern;
|
2020-05-28 21:41:54 +02:00
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with invalid schedulePattern', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-07-29 09:34:23 -07:00
|
|
|
tmp.schedulePattern = 'not a pattern';
|
2020-05-28 21:41:54 +02:00
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config without format', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
delete tmp.format;
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with invalid format', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.format = 'invalid format';
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config without retentionPolicy', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
delete tmp.retentionPolicy;
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with invalid retentionPolicy', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.retentionPolicy = 'not an object';
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with empty retentionPolicy', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.retentionPolicy = {};
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with retentionPolicy missing properties', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.retentionPolicy = { foo: 'bar' };
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with retentionPolicy with invalid keepWithinSecs', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.retentionPolicy = { keepWithinSecs: 'not a number' };
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with invalid password', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.password = 1234;
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with invalid syncConcurrency', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.syncConcurrency = 'not a number';
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with invalid syncConcurrency', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.syncConcurrency = 0;
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set backup_config with invalid acceptSelfSignedCerts', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.acceptSelfSignedCerts = 'not a boolean';
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-05-28 21:41:54 +02:00
|
|
|
.send(tmp)
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can set backup_config', async function () {
|
|
|
|
|
let tmp = JSON.parse(JSON.stringify(defaultConfig));
|
2020-05-28 21:41:54 +02:00
|
|
|
tmp.format = 'rsync';
|
|
|
|
|
tmp.backupFolder = BACKUP_FOLDER;
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token })
|
|
|
|
|
.send(tmp);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can get backup_config', async function () {
|
|
|
|
|
const response = await superagent.get(`${serverUrl}/api/v1/settings/backup_config`)
|
|
|
|
|
.query({ access_token: owner.token });
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
|
|
|
|
expect(response.body.format).to.equal('rsync');
|
|
|
|
|
expect(response.body.backupFolder).to.equal(BACKUP_FOLDER);
|
2020-05-28 21:41:54 +02:00
|
|
|
});
|
|
|
|
|
});
|
2020-11-17 18:58:43 +01:00
|
|
|
|
|
|
|
|
describe('language', function () {
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can get default language', async function () {
|
|
|
|
|
const response = await superagent.get(`${serverUrl}/api/v1/settings/language`)
|
|
|
|
|
.query({ access_token: owner.token });
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
|
|
|
|
expect(response.body.language).to.equal('en');
|
2020-11-17 18:58:43 +01:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set language with missing language', async function () {
|
|
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/language`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-11-17 18:58:43 +01:00
|
|
|
.send({ foo: 'bar' })
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(400);
|
2020-11-17 18:58:43 +01:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('cannot set language with invalid language', async function () {
|
|
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/language`)
|
|
|
|
|
.query({ access_token: owner.token })
|
2020-11-17 18:58:43 +01:00
|
|
|
.send({ language: 'doesnotexist' })
|
2021-08-12 16:27:31 -07:00
|
|
|
.ok(() => true);
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(404);
|
2020-11-17 18:58:43 +01:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can set language', async function () {
|
|
|
|
|
const response = await superagent.post(`${serverUrl}/api/v1/settings/language`)
|
|
|
|
|
.query({ access_token: owner.token })
|
|
|
|
|
.send({ language: 'de' });
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
2020-11-17 18:58:43 +01:00
|
|
|
});
|
|
|
|
|
|
2021-08-12 16:27:31 -07:00
|
|
|
it('can get language', async function () {
|
|
|
|
|
const response = await superagent.get(`${serverUrl}/api/v1/settings/language`)
|
|
|
|
|
.query({ access_token: owner.token });
|
|
|
|
|
|
|
|
|
|
expect(response.statusCode).to.equal(200);
|
|
|
|
|
expect(response.body.language).to.equal('de');
|
2020-11-17 18:58:43 +01:00
|
|
|
});
|
|
|
|
|
});
|
2016-08-01 15:10:45 +02:00
|
|
|
});
|