mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
use launch_url to specify awx host for workers
This commit is contained in:
parent
09a6a326d1
commit
fddecfdd25
@ -17,7 +17,7 @@ docker-compose \
|
||||
up --scale chrome=2 --scale firefox=0
|
||||
|
||||
# run headlessly with multiple workers on the cluster
|
||||
AWX_E2E_URL='https://awx:8043' AWX_E2E_WORKERS=2 npm --prefix awx/ui run e2e
|
||||
AWX_E2E_LAUNCH_URL='https://awx:8043' AWX_E2E_WORKERS=2 npm --prefix awx/ui run e2e
|
||||
```
|
||||
|
||||
**Note:** Unless overridden in [settings](settings.js), tests will run against `localhost:8043`.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/activity_stream`
|
||||
return `${this.api.globals.launch_url}/#/activity_stream`
|
||||
},
|
||||
elements: {
|
||||
title: '.List-titleText',
|
||||
|
||||
@ -53,7 +53,7 @@ const listPanel = {
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/credential_types`
|
||||
return `${this.api.globals.launch_url}/#/credential_types`
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -229,7 +229,7 @@ const details = _.merge({}, common, {
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/credentials`
|
||||
return `${this.api.globals.launch_url}/#/credentials`
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -37,7 +37,7 @@ const smartInvDetails = createFormSection({
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/inventories`;
|
||||
return `${this.api.globals.launch_url}/#/inventories`;
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -22,7 +22,7 @@ const details = createFormSection({
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/inventory_scripts`;
|
||||
return `${this.api.globals.launch_url}/#/inventory_scripts`;
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/login`
|
||||
return `${this.api.globals.launch_url}/#/login`
|
||||
},
|
||||
elements: {
|
||||
username: '#login-username',
|
||||
|
||||
@ -27,7 +27,7 @@ const details = createFormSection({
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/notification_templates`;
|
||||
return `${this.api.globals.launch_url}/#/notification_templates`;
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -20,7 +20,7 @@ const details = createFormSection({
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/organizations`;
|
||||
return `${this.api.globals.launch_url}/#/organizations`;
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -23,7 +23,7 @@ const details = createFormSection({
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/projects`;
|
||||
return `${this.api.globals.launch_url}/#/projects`;
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -21,7 +21,7 @@ const details = createFormSection({
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/teams`;
|
||||
return `${this.api.globals.launch_url}/#/teams`;
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -25,7 +25,7 @@ const details = createFormSection({
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/templates`;
|
||||
return `${this.api.globals.launch_url}/#/templates`;
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -21,7 +21,7 @@ const details = createFormSection({
|
||||
|
||||
module.exports = {
|
||||
url() {
|
||||
return `${this.api.globals.awxURL}/#/users`;
|
||||
return `${this.api.globals.launch_url}/#/users`;
|
||||
},
|
||||
sections: {
|
||||
header,
|
||||
|
||||
@ -3,6 +3,7 @@ const AWX_E2E_USERNAME = process.env.AWX_E2E_USERNAME || 'awx-e2e';
|
||||
const AWX_E2E_PASSWORD = process.env.AWX_E2E_PASSWORD || 'password';
|
||||
const AWX_E2E_SELENIUM_HOST = process.env.AWX_E2E_SELENIUM_HOST || 'localhost';
|
||||
const AWX_E2E_SELENIUM_PORT = process.env.AWX_E2E_SELENIUM_PORT || 4444;
|
||||
const AWX_E2E_LAUNCH_URL = process.env.AWX_E2E_LAUNCH_URL || AWX_E2E_URL;
|
||||
const AWX_E2E_TIMEOUT_SHORT = process.env.AWX_E2E_TIMEOUT_SHORT || 1000;
|
||||
const AWX_E2E_TIMEOUT_MEDIUM = process.env.AWX_E2E_TIMEOUT_MEDIUM || 5000;
|
||||
const AWX_E2E_TIMEOUT_LONG = process.env.AWX_E2E_TIMEOUT_LONG || 10000;
|
||||
@ -20,6 +21,7 @@ module.exports = {
|
||||
retryAssertionTimeout: AWX_E2E_TIMEOUT_MEDIUM,
|
||||
selenium_host: AWX_E2E_SELENIUM_HOST,
|
||||
selenium_port: AWX_E2E_SELENIUM_PORT,
|
||||
launch_url: AWX_E2E_LAUNCH_URL,
|
||||
shortTimeout: AWX_E2E_TIMEOUT_SHORT,
|
||||
waitForConditionTimeout: AWX_E2E_TIMEOUT_MEDIUM,
|
||||
test_workers: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user