Skip to content

Commit

Permalink
Remove the temporary allocationFileExplorer mirage scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed Aug 20, 2019
1 parent 1783a7a commit 7b038ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
2 changes: 1 addition & 1 deletion ui/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function(environment) {

APP: {
blockingQueries: true,
mirageScenario: 'allocationFileExplorer', // FIXME for stable preview links only
mirageScenario: 'smallCluster',
mirageWithNamespaces: true,
mirageWithTokens: true,
mirageWithRegions: true,
Expand Down
30 changes: 0 additions & 30 deletions ui/mirage/scenarios/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const allScenarios = {
allNodeTypes,
everyFeature,
emptyCluster,
allocationFileExplorer, // FIXME for stable preview links only
};

const scenario = getConfigValue('mirageScenario', 'emptyCluster');
Expand Down Expand Up @@ -118,35 +117,6 @@ function emptyCluster(server) {
server.create('node');
}

function allocationFileExplorer(server) {
server.create('node');

const job = server.create('job', {
id: 'a-job',
type: 'service',
activeDeployment: true,
namespaceId: 'default',
createAllocations: false,
});

const taskGroup = server.create('task-group', {
name: 'task-group',
createAllocations: false,
shallow: true,
jobId: job.id,
});
server.create('task', { name: 'task', taskGroup: taskGroup });
server.create('allocation', {
clientStatus: 'running',
desiredStatus: 'run',
id: '12345',
jobId: job.id,
taskGroup: taskGroup.name,
});
server.createList('allocFile', 5);
server.create('allocFile', 'dir', { depth: 2 });
}

// Behaviors

function createTokens(server) {
Expand Down

0 comments on commit 7b038ac

Please sign in to comment.