|
@@ -122,7 +122,7 @@ describe('CloudWatchDatasource', () => {
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- it('should cancel query for invalid extended statistics', () => {
|
|
|
|
|
|
|
+ it.each(['pNN.NN', 'p9', 'p99.', 'p99.999'])('should cancel query for invalid extended statistics (%s)', stat => {
|
|
|
const query = {
|
|
const query = {
|
|
|
range: { from: 'now-1h', to: 'now' },
|
|
range: { from: 'now-1h', to: 'now' },
|
|
|
rangeRaw: { from: 1483228800, to: 1483232400 },
|
|
rangeRaw: { from: 1483228800, to: 1483232400 },
|
|
@@ -134,7 +134,7 @@ describe('CloudWatchDatasource', () => {
|
|
|
dimensions: {
|
|
dimensions: {
|
|
|
InstanceId: 'i-12345678',
|
|
InstanceId: 'i-12345678',
|
|
|
},
|
|
},
|
|
|
- statistics: ['pNN.NN'],
|
|
|
|
|
|
|
+ statistics: [stat],
|
|
|
period: '60s',
|
|
period: '60s',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|