Skip to content

Commit

Permalink
Use catalog API version 2 (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonkopliku authored Nov 17, 2023
1 parent 23fe3fa commit 02b6c12
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/js/lib/api/checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const getLastExecutionByGroupID = (groupID) =>
);

export const getCatalog = (env) =>
networkClient.get(`/api/v1/checks/catalog`, {
networkClient.get(`/api/v2/checks/catalog`, {
...defaultConfig,
params: env,
});
Expand Down
2 changes: 1 addition & 1 deletion assets/js/state/sagas/catalog.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { updateCatalog } from './catalog';

import { setCatalogLoading, setCatalogData, setCatalogError } from '../catalog';

const getCatalogUrl = '/api/v1/checks/catalog';
const getCatalogUrl = '/api/v2/checks/catalog';
const axiosMock = new MockAdapter(networkClient);

describe('Catalog saga', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/cypress/e2e/checks_catalog.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { catalogCheckFactory } from '@lib/test-utils/factories';
import { groupBy } from 'lodash';

context('Checks catalog', () => {
const checksCatalogURL = `**/api/v1/checks/catalog`;
const checksCatalogURL = `**/api/v2/checks/catalog`;

const clusterChecksGroup = 'Group 1';
const group1Checks = 2;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/cypress/e2e/hana_cluster_details.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ context('HANA cluster details', () => {
warning_count: 3,
critical_count: 1,
});
const catalogURL = `**/api/v1/checks/catalog*`;
const catalogURL = `**/api/v2/checks/catalog*`;
const catalog = catalogFactory.build();

before(() => {
Expand Down

0 comments on commit 02b6c12

Please sign in to comment.