Skip to content

Commit

Permalink
upcoming: [M3-7693] - Rename Akamai Global Load Balancer to `Akamai…
Browse files Browse the repository at this point in the history
… Cloud Load Balancer` (#10115)

* find and replace `Global Load Balancer` to `Cloud Load Balancer`

* find and replace `aglb` to `aclb`

* fix import

* fix unit tests

---------

Co-authored-by: Banks Nussman <banks@nussman.us>
  • Loading branch information
bnussman-akamai and bnussman authored Jan 29, 2024
1 parent 41154d8 commit ddcc599
Show file tree
Hide file tree
Showing 49 changed files with 255 additions and 260 deletions.
10 changes: 5 additions & 5 deletions packages/api-v4/src/aglb/certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
/**
* getLoadbalancerCertificates
*
* Returns a paginated list of Akamai Global Load Balancer certificates
* Returns a paginated list of Akamai Cloud Load Balancer certificates
*/
export const getLoadbalancerCertificates = (
loadbalancerId: number,
Expand All @@ -39,7 +39,7 @@ export const getLoadbalancerCertificates = (
/**
* getLoadbalancerCertificate
*
* Returns an Akamai Global Load Balancer certificate
* Returns an Akamai Cloud Load Balancer certificate
*/
export const getLoadbalancerCertificate = (
loadbalancerId: number,
Expand All @@ -57,7 +57,7 @@ export const getLoadbalancerCertificate = (
/**
* createLoadbalancerCertificate
*
* Creates an Akamai Global Load Balancer certificate
* Creates an Akamai Cloud Load Balancer certificate
*/
export const createLoadbalancerCertificate = (
loadbalancerId: number,
Expand All @@ -74,7 +74,7 @@ export const createLoadbalancerCertificate = (
/**
* updateLoadbalancerCertificate
*
* Updates an Akamai Global Load Balancer certificate
* Updates an Akamai Cloud Load Balancer certificate
*/
export const updateLoadbalancerCertificate = (
loadbalancerId: number,
Expand All @@ -94,7 +94,7 @@ export const updateLoadbalancerCertificate = (
/**
* deleteLoadbalancerCertificate
*
* Deletes an Akamai Global Load Balancer certificate
* Deletes an Akamai Cloud Load Balancer certificate
*/
export const deleteLoadbalancerCertificate = (
loadbalancerId: number,
Expand Down
12 changes: 6 additions & 6 deletions packages/api-v4/src/aglb/configurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
/**
* getLoadbalancerConfigurations
*
* Returns a paginated list of Akamai Global Load Balancer configurations
* Returns a paginated list of Akamai Cloud Load Balancer configurations
*/
export const getLoadbalancerConfigurations = (
loadbalancerId: number,
Expand All @@ -42,7 +42,7 @@ export const getLoadbalancerConfigurations = (
/**
* getLoadbalancerConfiguration
*
* Returns an Akamai Global Load Balancer configuration
* Returns an Akamai Cloud Load Balancer configuration
*/
export const getLoadbalancerConfiguration = (
loadbalancerId: number,
Expand All @@ -60,7 +60,7 @@ export const getLoadbalancerConfiguration = (
/**
* getLoadbalancerConfigurationsEndpointHealth
*
* Returns endpoint health for an Akamai Global Load Balancer configuration
* Returns endpoint health for an Akamai Cloud Load Balancer configuration
*/
export const getLoadbalancerConfigurationsEndpointHealth = (
loadbalancerId: number
Expand All @@ -77,7 +77,7 @@ export const getLoadbalancerConfigurationsEndpointHealth = (
/**
* createLoadbalancerConfiguration
*
* Creates an Akamai Global Load Balancer configuration
* Creates an Akamai Cloud Load Balancer configuration
*/
export const createLoadbalancerConfiguration = (
loadbalancerId: number,
Expand All @@ -96,7 +96,7 @@ export const createLoadbalancerConfiguration = (
/**
* updateLoadbalancerConfiguration
*
* Updates an Akamai Global Load Balancer configuration
* Updates an Akamai Cloud Load Balancer configuration
*/
export const updateLoadbalancerConfiguration = (
loadbalancerId: number,
Expand All @@ -116,7 +116,7 @@ export const updateLoadbalancerConfiguration = (
/**
* deleteLoadbalancerConfiguration
*
* Deletes an Akamai Global Load Balancer configuration
* Deletes an Akamai Cloud Load Balancer configuration
*/
export const deleteLoadbalancerConfiguration = (
loadbalancerId: number,
Expand Down
14 changes: 7 additions & 7 deletions packages/api-v4/src/aglb/loadbalancers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { CreateBasicLoadbalancerSchema } from '@linode/validation';
/**
* getLoadbalancers
*
* Returns a paginated list of Akamai Global Load Balancers
* Returns a paginated list of Akamai Cloud Load Balancers
*/
export const getLoadbalancers = (params?: Params, filter?: Filter) =>
Request<ResourcePage<Loadbalancer>>(
Expand All @@ -32,7 +32,7 @@ export const getLoadbalancers = (params?: Params, filter?: Filter) =>
/**
* getLoadbalancer
*
* Returns an Akamai Global Load Balancer
* Returns an Akamai Cloud Load Balancer
*/
export const getLoadbalancer = (id: number) =>
Request<Loadbalancer>(
Expand All @@ -43,7 +43,7 @@ export const getLoadbalancer = (id: number) =>
/**
* getLoadbalancerEndpointHealth
*
* Returns the general endpoint health of an Akamai Global Load Balancer
* Returns the general endpoint health of an Akamai Cloud Load Balancer
*/
export const getLoadbalancerEndpointHealth = (id: number) =>
Request<LoadBalancerEndpointHealth>(
Expand All @@ -54,7 +54,7 @@ export const getLoadbalancerEndpointHealth = (id: number) =>
/**
* createLoadbalancer
*
* Creates an Akamai Global Load Balancer
* Creates an Akamai Cloud Load Balancer
*/
export const createLoadbalancer = (data: CreateLoadbalancerPayload) =>
Request<Loadbalancer>(
Expand All @@ -66,7 +66,7 @@ export const createLoadbalancer = (data: CreateLoadbalancerPayload) =>
/**
* createBasicLoadbalancer
*
* Creates an unconfigured Akamai Global Load Balancer
* Creates an unconfigured Akamai Cloud Load Balancer
*/
export const createBasicLoadbalancer = (data: CreateBasicLoadbalancerPayload) =>
Request<Loadbalancer>(
Expand All @@ -78,7 +78,7 @@ export const createBasicLoadbalancer = (data: CreateBasicLoadbalancerPayload) =>
/**
* updateLoadbalancer
*
* Updates an Akamai Global Load Balancer
* Updates an Akamai Cloud Load Balancer
*/
export const updateLoadbalancer = (
id: number,
Expand All @@ -93,7 +93,7 @@ export const updateLoadbalancer = (
/**
* deleteLoadbalancer
*
* Deletes an Akamai Global Load Balancer
* Deletes an Akamai Cloud Load Balancer
*/
export const deleteLoadbalancer = (id: number) =>
Request<{}>(
Expand Down
10 changes: 5 additions & 5 deletions packages/api-v4/src/aglb/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { UpdateRouteSchema, CreateRouteSchema } from '@linode/validation';
/**
* getLoadbalancerRoutes
*
* Returns a paginated list of Akamai Global Load Balancer routes
* Returns a paginated list of Akamai Cloud Load Balancer routes
*/
export const getLoadbalancerRoutes = (
loadbalancerId: number,
Expand All @@ -32,7 +32,7 @@ export const getLoadbalancerRoutes = (
/**
* getLoadbalancerRoute
*
* Returns an Akamai Global Load Balancer route
* Returns an Akamai Cloud Load Balancer route
*/
export const getLoadbalancerRoute = (loadbalancerId: number, routeId: number) =>
Request<Route>(
Expand All @@ -47,7 +47,7 @@ export const getLoadbalancerRoute = (loadbalancerId: number, routeId: number) =>
/**
* createLoadbalancerRoute
*
* Creates an Akamai Global Load Balancer route
* Creates an Akamai Cloud Load Balancer route
*/
export const createLoadbalancerRoute = (
loadbalancerId: number,
Expand All @@ -64,7 +64,7 @@ export const createLoadbalancerRoute = (
/**
* updateLoadbalancerRoute
*
* Updates an Akamai Global Load Balancer route
* Updates an Akamai Cloud Load Balancer route
*/
export const updateLoadbalancerRoute = (
loadbalancerId: number,
Expand All @@ -84,7 +84,7 @@ export const updateLoadbalancerRoute = (
/**
* deleteLoadbalancerRoute
*
* Deletes an Akamai Global Load Balancer route
* Deletes an Akamai Cloud Load Balancer route
*/
export const deleteLoadbalancerRoute = (
loadbalancerId: number,
Expand Down
12 changes: 6 additions & 6 deletions packages/api-v4/src/aglb/service-targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
/**
* getLoadbalancerServiceTargets
*
* Returns a paginated list of Akamai Global Load Balancer service targets
* Returns a paginated list of Akamai Cloud Load Balancer service targets
*/
export const getLoadbalancerServiceTargets = (
loadbalancerId: number,
Expand All @@ -41,7 +41,7 @@ export const getLoadbalancerServiceTargets = (
/**
* getServiceTarget
*
* Returns an Akamai Global Load Balancer service target
* Returns an Akamai Cloud Load Balancer service target
*/
export const getServiceTarget = (
loadbalancerId: number,
Expand All @@ -59,7 +59,7 @@ export const getServiceTarget = (
/**
* getServiceTargetsEndpointHealth
*
* Returns endpoint health data for each service targets on an Akamai Global Load Balancer
* Returns endpoint health data for each service targets on an Akamai Cloud Load Balancer
*/
export const getServiceTargetsEndpointHealth = (loadbalancerId: number) =>
Request<ServiceTargetsEndpointHealth>(
Expand All @@ -74,7 +74,7 @@ export const getServiceTargetsEndpointHealth = (loadbalancerId: number) =>
/**
* createLoadbalancerServiceTarget
*
* Creates an Akamai Global Load Balancer service target
* Creates an Akamai Cloud Load Balancer service target
*/
export const createLoadbalancerServiceTarget = (
loadbalancerId: number,
Expand All @@ -93,7 +93,7 @@ export const createLoadbalancerServiceTarget = (
/**
* updateLoadbalancerServiceTarget
*
* Updates an Akamai Global Load Balancer service target
* Updates an Akamai Cloud Load Balancer service target
*/
export const updateLoadbalancerServiceTarget = (
loadbalancerId: number,
Expand All @@ -113,7 +113,7 @@ export const updateLoadbalancerServiceTarget = (
/**
* deleteLoadbalancerServiceTarget
*
* Deletes an Akamai Global Load Balancer service target
* Deletes an Akamai Cloud Load Balancer service target
*/
export const deleteLoadbalancerServiceTarget = (
loadbalancerId: number,
Expand Down
10 changes: 5 additions & 5 deletions packages/api-v4/src/aglb/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface CreateLoadbalancerPayload {
}

/**
* TODO: AGLB - remove when we move to full creation flow
* TODO: ACLB - remove when we move to full creation flow
*/
export interface CreateBasicLoadbalancerPayload {
label: string;
Expand Down Expand Up @@ -221,22 +221,22 @@ export interface EndpointHealth {

export interface ConfigurationsEndpointHealth {
/**
* The id of the AGLB
* The id of the ACLB
*/
id: number;
/**
* An array of health data for each configuration on the AGLB
* An array of health data for each configuration on the ACLB
*/
configurations: EndpointHealth[];
}

export interface ServiceTargetsEndpointHealth {
/**
* The id of the AGLB
* The id of the ACLB
*/
id: number;
/**
* An array of health data for each service target on the AGLB
* An array of health data for each service target on the ACLB
*/
service_targets: EndpointHealth[];
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Integration tests for Akamai Global Load Balancer certificates page.
* @file Integration tests for Akamai Cloud Load Balancer certificates page.
*/

import {
Expand All @@ -25,7 +25,7 @@ import {
import { Loadbalancer, Certificate } from '@linode/api-v4';

/**
* Deletes the TLS / Service Target certificate in the AGLB landing page.
* Deletes the TLS / Service Target certificate in the ACLB landing page.
*
* @param loadBalancer - The load balancer that contains the certificate to be deleted.
* @param certificatesDeleteBefore - The array of certificates to be displayed before deleting.
Expand All @@ -39,7 +39,7 @@ const deleteCertificate = (
certificatesDeleteAfter: Certificate[]
) => {
mockAppendFeatureFlags({
aglb: makeFeatureFlagData(true),
aclb: makeFeatureFlagData(true),
}).as('getFeatureFlags');
mockGetFeatureFlagClientstream().as('getClientStream');
mockGetLoadBalancer(loadBalancer).as('getLoadBalancer');
Expand Down Expand Up @@ -94,7 +94,7 @@ const deleteCertificate = (
}
};

describe('Akamai Global Load Balancer certificates page', () => {
describe('Akamai Cloud Load Balancer certificates page', () => {
let mockLoadBalancer: Loadbalancer;

before(() => {
Expand All @@ -113,7 +113,7 @@ describe('Akamai Global Load Balancer certificates page', () => {
});

mockAppendFeatureFlags({
aglb: makeFeatureFlagData(true),
aclb: makeFeatureFlagData(true),
}).as('getFeatureFlags');
mockGetFeatureFlagClientstream().as('getClientStream');
mockGetLoadBalancer(mockLoadBalancer).as('getLoadBalancer');
Expand Down Expand Up @@ -185,7 +185,7 @@ describe('Akamai Global Load Balancer certificates page', () => {
});

mockAppendFeatureFlags({
aglb: makeFeatureFlagData(true),
aclb: makeFeatureFlagData(true),
}).as('getFeatureFlags');
mockGetFeatureFlagClientstream().as('getClientStream');
mockGetLoadBalancer(mockLoadBalancer).as('getLoadBalancer');
Expand Down Expand Up @@ -267,7 +267,7 @@ describe('Akamai Global Load Balancer certificates page', () => {
});

mockAppendFeatureFlags({
aglb: makeFeatureFlagData(true),
aclb: makeFeatureFlagData(true),
}).as('getFeatureFlags');
mockGetFeatureFlagClientstream().as('getClientStream');
mockGetLoadBalancer(mockLoadBalancer).as('getLoadBalancer');
Expand Down Expand Up @@ -372,7 +372,7 @@ describe('Akamai Global Load Balancer certificates page', () => {
});

mockAppendFeatureFlags({
aglb: makeFeatureFlagData(true),
aclb: makeFeatureFlagData(true),
}).as('getFeatureFlags');
mockGetFeatureFlagClientstream().as('getClientStream');
mockGetLoadBalancer(mockLoadBalancer).as('getLoadBalancer');
Expand Down Expand Up @@ -515,7 +515,7 @@ describe('Akamai Global Load Balancer certificates page', () => {
});

mockAppendFeatureFlags({
aglb: makeFeatureFlagData(true),
aclb: makeFeatureFlagData(true),
}).as('getFeatureFlags');
mockGetFeatureFlagClientstream().as('getClientStream');
mockGetLoadBalancer(mockLoadBalancer).as('getLoadBalancer');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import {
} from 'support/intercepts/load-balancers';
import { ui } from 'support/ui';

describe('Akamai Global Load Balancer configurations page', () => {
describe('Akamai Cloud Load Balancer configurations page', () => {
beforeEach(() => {
mockAppendFeatureFlags({
aglb: makeFeatureFlagData(true),
aclb: makeFeatureFlagData(true),
}).as('getFeatureFlags');
mockGetFeatureFlagClientstream().as('getClientStream');
});
Expand Down Expand Up @@ -446,7 +446,7 @@ describe('Akamai Global Load Balancer configurations page', () => {
cy.wait('@updateConfiguration');
});

it('can remove a route from an AGLB configuration', () => {
it('can remove a route from an ACLB configuration', () => {
const routes = routeFactory.buildList(3);
const configuration = configurationFactory.build({
protocol: 'http',
Expand Down
Loading

0 comments on commit ddcc599

Please sign in to comment.