mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Exclude usage stats when `exclude_usage` flag is specified * Entirely excluding the usage key altogether * Adding API integration test * Fixing param name in comment + adding more info to comment * Fix API test copy-pasta * Fixing test assertion syntax
This commit is contained in:
parent
f1e388ef2c
commit
f81263da8e
2 changed files with 24 additions and 7 deletions
|
@ -118,6 +118,18 @@ export default function ({ getService }) {
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('exclude usage', () => {
|
||||
it('should exclude usage from the API response', () => {
|
||||
return supertest
|
||||
.get('/api/stats?extended&exclude_usage')
|
||||
.expect('Content-Type', /json/)
|
||||
.expect(200)
|
||||
.then(({ body }) => {
|
||||
expect(body).to.not.have.property('usage');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue