Remove the temporary allocationFileExplorer mirage scenario

This commit is contained in:
Michael Lange 2019-08-20 09:39:47 -07:00
parent ac34307a9b
commit 1e620953e4
2 changed files with 1 additions and 31 deletions

View File

@ -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,

View File

@ -13,7 +13,6 @@ const allScenarios = {
allNodeTypes,
everyFeature,
emptyCluster,
allocationFileExplorer, // FIXME for stable preview links only
};
const scenario = getConfigValue('mirageScenario', 'emptyCluster');
@ -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) {