2022-02-22 06:57:49 +03:00
|
|
|
const {agentProvider, fixtureManager, matchers} = require('../../utils/e2e-framework');
|
2022-05-10 23:49:38 +03:00
|
|
|
const {anyEtag} = matchers;
|
2020-06-23 14:39:05 +03:00
|
|
|
|
2022-05-12 17:24:45 +03:00
|
|
|
const settingsMatcher = {
|
|
|
|
version: matchers.anyString
|
|
|
|
};
|
|
|
|
|
2019-02-04 17:49:59 +03:00
|
|
|
describe('Settings Content API', function () {
|
2022-02-22 06:57:49 +03:00
|
|
|
let agent;
|
2020-11-30 17:25:22 +03:00
|
|
|
|
|
|
|
before(async function () {
|
2022-02-22 06:57:49 +03:00
|
|
|
agent = await agentProvider.getContentAPIAgent();
|
|
|
|
await fixtureManager.init('api_keys');
|
|
|
|
agent.authenticate();
|
2019-01-03 18:23:22 +03:00
|
|
|
});
|
|
|
|
|
2020-11-30 17:25:22 +03:00
|
|
|
it('Can request settings', async function () {
|
2022-02-22 06:57:49 +03:00
|
|
|
await agent.get('settings/')
|
|
|
|
.expectStatus(200)
|
2022-05-10 23:49:38 +03:00
|
|
|
.matchHeaderSnapshot({
|
|
|
|
etag: anyEtag
|
|
|
|
})
|
2022-05-12 17:24:45 +03:00
|
|
|
.matchBodySnapshot({
|
|
|
|
settings: settingsMatcher
|
|
|
|
});
|
2019-01-03 18:23:22 +03:00
|
|
|
});
|
|
|
|
});
|