mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: MEGA - Make Eslint Great Again 💅 (#26094)
* Fix lint error in types.ts * Bump eslint and its deps to latest * Add eslintignore and remove not needed eslintrcs * Change webpack configs eslint config * Update package.jsons and removed unused eslintrc files * Chore yarn lint --fix 💅 * Add devenv to eslintignore * Remove eslint disable comments for rules that are not used * Remaining eslint fixes 💅 * Bump grafana/eslint-config 💥 * Modify package.json No need for duplicate checks. * Modify eslintignore to ignore data and dist folders * Revert removing .eslintrc to make sure not to use certain packages * Modify package.json to remove not needed command * Use gitignore for ignoring paths
This commit is contained in:
@@ -2,7 +2,7 @@ import { sleep, check, group } from 'k6';
|
||||
import { createBasicAuthClient } from './modules/client.js';
|
||||
|
||||
export let options = {
|
||||
noCookiesReset: true
|
||||
noCookiesReset: true,
|
||||
};
|
||||
|
||||
let endpoint = __ENV.URL || 'http://localhost:10080/grafana';
|
||||
@@ -19,17 +19,17 @@ export const setup = () => {
|
||||
return {
|
||||
datasourceId: res.json().id,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
export default (data) => {
|
||||
group("auth proxy test", () => {
|
||||
group("batch proxy requests", () => {
|
||||
export default data => {
|
||||
group('auth proxy test', () => {
|
||||
group('batch proxy requests', () => {
|
||||
const d = new Date();
|
||||
const batchCount = 300;
|
||||
const requests = [];
|
||||
const query = encodeURI('topk(5, max(scrape_duration_seconds) by (job))');
|
||||
const start = (d.getTime() / 1000) - 3600;
|
||||
const end = (d.getTime() / 1000);
|
||||
const start = d.getTime() / 1000 - 3600;
|
||||
const end = d.getTime() / 1000;
|
||||
const step = 20;
|
||||
|
||||
requests.push({ method: 'GET', url: '/api/annotations?dashboardId=8&from=1558670300607&to=1558691900607' });
|
||||
@@ -44,13 +44,13 @@ export default (data) => {
|
||||
let responses = client.batch(requests);
|
||||
for (let n = 0; n < batchCount; n++) {
|
||||
check(responses[n], {
|
||||
'response status is 200': (r) => r.status === 200,
|
||||
'response status is 200': r => r.status === 200,
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
sleep(5)
|
||||
}
|
||||
sleep(5);
|
||||
};
|
||||
|
||||
export const teardown = (data) => {}
|
||||
export const teardown = data => {};
|
||||
|
||||
Reference in New Issue
Block a user