0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Changed tenor config API key name

refs https://github.com/TryGhost/Team/issues/1237#issuecomment-981770688

- API key names for external services now follow a standard pattern
  - top-level key of the service name
  - public/private and read/write perms inside the name, eg. `publicReadOnlyApiKey`
- updated test to match expected API key name
This commit is contained in:
Kevin Ansfield 2021-11-30 11:27:10 +00:00
parent e6856f6ac6
commit 8cb748c580

View file

@ -15,12 +15,12 @@ describe('Config API', function () {
}); });
afterEach(function () { afterEach(function () {
configUtils.set('tenor:apiKey', undefined); configUtils.set('tenor:publicReadOnlyApiKey', undefined);
}); });
it('can retrieve config and all expected properties', async function () { it('can retrieve config and all expected properties', async function () {
// set any non-default keys so we can be sure they're exposed // set any non-default keys so we can be sure they're exposed
configUtils.set('tenor:apiKey', 'TENOR_KEY'); configUtils.set('tenor:publicReadOnlyApiKey', 'TENOR_KEY');
const res = await request const res = await request
.get(localUtils.API.getApiQuery('config/')) .get(localUtils.API.getApiQuery('config/'))