Skip to content

Commit

Permalink
reduce VPC mock server data cc @dwiley-akamai
Browse files Browse the repository at this point in the history
  • Loading branch information
coliu-akamai committed Oct 23, 2023
1 parent 029a75e commit 4828cd9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/manager/src/mocks/serverHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,13 @@ const aglb = [
const vpc = [
rest.get('*/vpcs', (req, res, ctx) => {
const vpcsWithSubnet1 = vpcFactory.buildList(5, {
subnets: subnetFactory.buildList(Math.floor(Math.random() * 10) + 1),
subnets: subnetFactory.buildList(Math.floor(Math.random() * 5) + 1),
});
const vpcsWithSubnet2 = vpcFactory.buildList(5, {
region: 'eu-west',
subnets: subnetFactory.buildList(Math.floor(Math.random() * 20) + 1),
subnets: subnetFactory.buildList(Math.floor(Math.random() * 5) + 1),
});
const vpcsWithoutSubnet = vpcFactory.buildList(20);
const vpcsWithoutSubnet = vpcFactory.buildList(10);
return res(
ctx.json(
makeResourcePage([
Expand All @@ -439,13 +439,13 @@ const vpc = [
ctx.json(
vpcFactory.build({
description: `VPC for webserver and database. VPC for webserver and database. VPC for webserver and database. VPC for webserver and database. VPC for webserver VPC for webserver VPC for webserver VPC for webserver VPC for webserver.VPC for webserver and database!!! VPC`,
subnets: subnetFactory.buildList(Math.floor(Math.random() * 10) + 1),
subnets: subnetFactory.buildList(Math.floor(Math.random() * 5) + 1),
})
)
);
}),
rest.get('*/vpcs/:vpcId/subnets', (req, res, ctx) => {
return res(ctx.json(makeResourcePage(subnetFactory.buildList(30))));
return res(ctx.json(makeResourcePage(subnetFactory.buildList(5))));
}),
rest.delete('*/vpcs/:vpcId/subnets/:subnetId', (req, res, ctx) => {
return res(ctx.json({}));
Expand Down

0 comments on commit 4828cd9

Please sign in to comment.