mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Fixed linting errors
This commit is contained in:
committed by
Jake McDermott
parent
fbfaf69ee9
commit
e243cf4435
@@ -17,14 +17,14 @@ module.exports = {
|
|||||||
Promise.all(resources)
|
Promise.all(resources)
|
||||||
.then(([project, inventory]) => {
|
.then(([project, inventory]) => {
|
||||||
const noPromptPromise = getOrCreate('/job_templates/', {
|
const noPromptPromise = getOrCreate('/job_templates/', {
|
||||||
name: `test-launch-jt-no-prompts`,
|
name: 'test-launch-jt-no-prompts',
|
||||||
inventory: inventory.id,
|
inventory: inventory.id,
|
||||||
project: project.id,
|
project: project.id,
|
||||||
playbook: 'hello_world.yml',
|
playbook: 'hello_world.yml',
|
||||||
});
|
});
|
||||||
|
|
||||||
const promptNoPassPromise = getOrCreate('/job_templates/', {
|
const promptNoPassPromise = getOrCreate('/job_templates/', {
|
||||||
name: `test-launch-jt-prompts-no-pass`,
|
name: 'test-launch-jt-prompts-no-pass',
|
||||||
inventory: inventory.id,
|
inventory: inventory.id,
|
||||||
ask_inventory_on_launch: true,
|
ask_inventory_on_launch: true,
|
||||||
project: project.id,
|
project: project.id,
|
||||||
@@ -40,28 +40,28 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Promise.all([noPromptPromise, promptNoPassPromise])
|
Promise.all([noPromptPromise, promptNoPassPromise])
|
||||||
.then(([noPrompt, promptNoPass]) => {
|
.then(([noPrompt, promptNoPass]) => {
|
||||||
templateReferences = {noPrompt, promptNoPass};
|
templateReferences = { noPrompt, promptNoPass };
|
||||||
let surveyPost = post(promptNoPass.related.survey_spec, {
|
const surveyPost = post(promptNoPass.related.survey_spec, {
|
||||||
name: "",
|
name: '',
|
||||||
description: "",
|
description: '',
|
||||||
spec: [{
|
spec: [{
|
||||||
question_name: "Foo",
|
question_name: 'Foo',
|
||||||
question_description: "",
|
question_description: '',
|
||||||
required: true,
|
required: true,
|
||||||
type: "text",
|
type: 'text',
|
||||||
variable: "foo",
|
variable: 'foo',
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 1024,
|
max: 1024,
|
||||||
default: "bar",
|
default: 'bar',
|
||||||
choices: "",
|
choices: '',
|
||||||
new_question: true
|
new_question: true
|
||||||
}]
|
}]
|
||||||
|
});
|
||||||
|
const surveyPatch = patch(promptNoPass.url, { survey_enabled: true });
|
||||||
|
Promise.all([surveyPost, surveyPatch])
|
||||||
|
.then(done);
|
||||||
});
|
});
|
||||||
let surveyPatch = patch(promptNoPass.url, { survey_enabled: true });
|
|
||||||
Promise.all([surveyPost, surveyPatch])
|
|
||||||
.then(done);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
'login to awx': client => {
|
'login to awx': client => {
|
||||||
@@ -75,7 +75,7 @@ module.exports = {
|
|||||||
templates.waitForElementVisible('input[class*="SmartSearch-input"]');
|
templates.waitForElementVisible('input[class*="SmartSearch-input"]');
|
||||||
templates.section.list.section.search
|
templates.section.list.section.search
|
||||||
.sendKeys('@input', `id:${templateReferences.noPrompt.id}`);
|
.sendKeys('@input', `id:${templateReferences.noPrompt.id}`);
|
||||||
templates.section.list.section.search.getValue('@input', function(result) {
|
templates.section.list.section.search.getValue('@input', (result) => {
|
||||||
client.assert.equal(result.value, `id:${templateReferences.noPrompt.id}`);
|
client.assert.equal(result.value, `id:${templateReferences.noPrompt.id}`);
|
||||||
});
|
});
|
||||||
client.pause(1000).waitForElementNotVisible('div.spinny');
|
client.pause(1000).waitForElementNotVisible('div.spinny');
|
||||||
@@ -98,7 +98,7 @@ module.exports = {
|
|||||||
templates.waitForElementVisible('input[class*="SmartSearch-input"]');
|
templates.waitForElementVisible('input[class*="SmartSearch-input"]');
|
||||||
templates.section.list.section.search
|
templates.section.list.section.search
|
||||||
.sendKeys('@input', `id:${templateReferences.promptNoPass.id}`);
|
.sendKeys('@input', `id:${templateReferences.promptNoPass.id}`);
|
||||||
templates.section.list.section.search.getValue('@input', function(result) {
|
templates.section.list.section.search.getValue('@input', (result) => {
|
||||||
client.assert.equal(result.value, `id:${templateReferences.promptNoPass.id}`);
|
client.assert.equal(result.value, `id:${templateReferences.promptNoPass.id}`);
|
||||||
});
|
});
|
||||||
client.pause(1000).waitForElementNotVisible('div.spinny');
|
client.pause(1000).waitForElementNotVisible('div.spinny');
|
||||||
|
|||||||
Reference in New Issue
Block a user