UI projects for Ansible.
-
Prerequisites
- Node 18.x (recommended)
- NPM 8.x (recommended)
Note: The project should with older versions of node and npm but may require regenerating the package-lock.json.
-
Clone Repository
git clone [email protected]:ansible/ansible-ui.git
-
Install Package Dependencies
npm ci
Environment Variable | Description |
---|---|
AWX_SERVER |
The AWX server (protocol://host:port). |
AWX_USERNAME |
The AWX server username. (only used by Cypress) |
AWX_PASSWORD |
The AWX server password. (only used by Cypress) |
AWX_API_PREFIX |
The AWX server API prefix. (/api/v2 ) |
AWX_ROUTE_PREFIX |
The AWX UI route prefix. (/awx ) |
EDA_SERVER |
The EDA server (protocol://host:port). |
EDA_USERNAME |
The EDA server username. (only used by Cypress) |
EDA_PASSWORD |
The EDA server password. (only used by Cypress) |
EDA_API_PREFIX |
The EDA server API prefix. (/api/eda/v1 ) |
EDA_ROUTE_PREFIX |
The EDA UI route prefix. (/eda ) |
HUB_SERVER |
The HUB server (protocol://host:port). |
HUB_USERNAME |
The HUB server username. (only used by Cypress) |
HUB_PASSWORD |
The HUB server password. (only used by Cypress) |
HUB_API_PREFIX |
The HUB server API prefix. (/api/automation-hub/ ) |
HUB_ROUTE_PREFIX |
The HUB UI route prefix. (/hub ) |
HUB_GALAXYKIT_COMMAND |
The galaxykit command. (galaxykit --ignore-certs ) |
export AWX_SERVER=http://localhost:8043
export AWX_USERNAME='my-user'
export AWX_PASSWORD='my-password'
export EDA_SERVER=http://localhost:5001
export EDA_USERNAME='my-user'
export EDA_PASSWORD='my-password'
export HUB_SERVER=http://localhost:8000
export HUB_USERNAME='my-user'
export HUB_PASSWORD='my-password'
Note: For Hub integration tests: Check that the Ansible binary was correctly installed under the Python directory. Add it to the PATH variable. This is needed for the galaxykit commands that create hub resources for tests.
NPM Script | Description |
---|---|
npm run awx |
Run AWX on http://localhost:4101 |
npm run e2e:awx |
Run AWX E2E tests from Cypress UI |
npm run e2e:run:awx |
Run AWX E2E tests from CLI |
npm run component:awx |
Run AWX component tests from Cypress UI |
npm run component:run:awx |
Run AWX component tests from CLI |
npm run hub |
Run HUB on http://localhost:4102 |
npm run e2e:hub |
Run HUB E2E tests from Cypress UI |
npm run e2e:run:hub |
Run HUB E2E tests from CLI |
npm run component:hub |
Run HUB component tests from Cypress UI |
npm run component:run:hub |
Run HUB component tests from CLI |
npm run eda |
Run EDA on http://localhost:4103 |
npm run e2e:eda |
Run EDA E2E tests from Cypress UI |
npm run e2e:run:eda |
Run EDA E2E tests from CLI |
npm run component:eda |
Run EDA component tests from Cypress UI |
npm run component:run:eda |
Run EDA component tests from CLI |
npm run tsc |
Run Typescript compiler checks |
npm run eslint |
Run eslint checks |
npm run prettier |
Run prettier format checks |
npm run prettier:fix |
Fix prettier format of files |
- Development
- Framework - A framework for building applications using PatternFly.
We ask all of our community members and contributors to adhere to the Ansible code of conduct. If you have questions or need assistance, please reach out to our community team at [email protected]