Skip to content

Commit

Permalink
fix(rum-api-client): point to the new rum bundler host (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekremney authored Jan 17, 2025
1 parent 0748587 commit b4760e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { hasText } from '@adobe/spacecat-shared-utils';
import { fetch } from '../utils.js';
import { GRANULARITY } from './constants.js';

const BASE_URL = 'https://rum.fastly-aem.page/bundles';
const BASE_URL = 'https://bundles.aem.page/bundles';
const HOURS_IN_DAY = 24;
const ONE_HOUR = 1000 * 60 * 60;
const ONE_DAY = ONE_HOUR * HOURS_IN_DAY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { generateDailyDates, generateHourlyDates, generateRumBundles } from '../

use(chaiAsPromised);

const BASE_URL = 'https://rum.fastly-aem.page';
const BASE_URL = 'https://bundles.aem.page';
describe('Rum bundler client', () => {
let sandbox;

Expand Down
6 changes: 4 additions & 2 deletions packages/spacecat-shared-rum-api-client/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import RUMAPIClient from '../src/index.js';

use(chaiAsPromised);

const RUM_BUNDLER_API_HOST = 'https://bundles.aem.page';

describe('RUMAPIClient', () => {
const context = {};
const rumApiClient = RUMAPIClient.createFrom(context);
Expand All @@ -42,7 +44,7 @@ describe('RUMAPIClient', () => {

const queryUrl = `/bundles${constructUrl('space.cat', new Date(), 'some-domain-key')}`;

nock('https://rum.fastly-aem.page')
nock(RUM_BUNDLER_API_HOST)
.get(queryUrl)
.reply(200, { rumBundles: [] });

Expand Down Expand Up @@ -75,7 +77,7 @@ describe('RUMAPIClient', () => {

const queryUrl = `/bundles${constructUrl('space.cat', new Date(), 'some-domain-key')}`;

nock('https://rum.fastly-aem.page')
nock(RUM_BUNDLER_API_HOST)
.get(queryUrl)
.reply(200, { rumBundles: [] });

Expand Down

0 comments on commit b4760e9

Please sign in to comment.