Skip to content

Commit

Permalink
ui: revert default mirage scenario to topoMedium and set product link…
Browse files Browse the repository at this point in the history
…s in all scenarios (#11649)
  • Loading branch information
lgfa29 authored Dec 9, 2021
1 parent f54a891 commit 147d971
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
3 changes: 1 addition & 2 deletions ui/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ module.exports = function(environment) {

APP: {
blockingQueries: true,
// TODO: revert before merging to main.
mirageScenario: 'sysbatchSmall', // convert to 'sysbatchSmall' when working on feature
mirageScenario: 'topoMedium',
mirageWithNamespaces: false,
mirageWithTokens: true,
mirageWithRegions: true,
Expand Down
8 changes: 4 additions & 4 deletions ui/mirage/scenarios/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function smallCluster(server) {
}

function mediumCluster(server) {
server.createList('agent', 3);
server.createList('agent', 3, 'withConsulLink', 'withVaultLink');
server.createList('node', 50);
server.createList('job', 25);
}
Expand All @@ -79,7 +79,7 @@ function massiveCluster(server) {
}

function allJobTypes(server) {
server.createList('agent', 3);
server.createList('agent', 3, 'withConsulLink', 'withVaultLink');
server.createList('node', 5);

server.create('job', { type: 'service' });
Expand All @@ -93,7 +93,7 @@ function allJobTypes(server) {
}

function allNodeTypes(server) {
server.createList('agent', 3);
server.createList('agent', 3, 'withConsulLink', 'withVaultLink');

server.create('node');
server.create('node', 'forceIPv4');
Expand All @@ -106,7 +106,7 @@ function allNodeTypes(server) {
}

function everyFeature(server) {
server.createList('agent', 3);
server.createList('agent', 3, 'withConsulLink', 'withVaultLink');

server.create('node', 'forceIPv4');
server.create('node', 'draining');
Expand Down
3 changes: 2 additions & 1 deletion ui/mirage/scenarios/sysbatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export function sysbatchLarge(server) {
}

function sysbatchScenario(server, clientCount) {
server.createList('agent', 3);
server.createList('agent', 3, 'withConsulLink', 'withVaultLink');

const clients = server.createList('node', clientCount, {
datacenter: 'dc1',
status: 'ready',
Expand Down
4 changes: 2 additions & 2 deletions ui/mirage/scenarios/topo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const genResources = (CPU, Memory) => ({
});

export function topoSmall(server) {
server.createList('agent', 3);
server.createList('agent', 3, 'withConsulLink', 'withVaultLink');
server.createList('node', 12, {
datacenter: 'dc1',
status: 'ready',
Expand Down Expand Up @@ -46,7 +46,7 @@ export function topoSmall(server) {
}

export function topoMedium(server) {
server.createList('agent', 3);
server.createList('agent', 3, 'withConsulLink', 'withVaultLink');
server.createList('node', 10, {
datacenter: 'us-west-1',
status: 'ready',
Expand Down

0 comments on commit 147d971

Please sign in to comment.