No description
  • TypeScript 99.5%
  • JavaScript 0.4%
  • CSS 0.1%
Find a file
James Talton 96dcf0bc90
Cleanup GitHub Actions (#3073)
Signed-off-by: James Talton <talton@gmail.com>
2024-09-03 09:24:59 -04:00
.github Cleanup GitHub Actions (#3073) 2024-09-03 09:24:59 -04:00
.husky lint-staged (#2466) 2024-06-06 14:12:58 -04:00
.vscode add debug launch configuration (#652) 2023-06-22 11:56:32 -04:00
cypress Cleanup GitHub Actions (#3073) 2024-09-03 09:24:59 -04:00
docs Update DEVELOPMENT.md (#2019) 2024-04-15 12:52:41 -04:00
framework [UXD][AAP-27645] AWX updates to navigation/headers and their tooltips (#2779) 2024-08-28 10:54:00 -04:00
frontend Cleanup GitHub Actions (#3073) 2024-09-03 09:24:59 -04:00
locales Manage Organization Roles dialog (#2376) 2024-05-28 16:32:30 -04:00
nginx [AAP-28231] Credential types based event streams (#2611) 2024-08-02 11:24:16 -04:00
playbooks add hello world playbook 2023-06-14 12:30:37 -04:00
rulebooks Adds playbooks and rulebooks to prevent problems when outside repos change (#595) 2023-06-05 17:41:46 -04:00
webpack Fix Component Tests (#2986) 2024-08-15 13:28:14 -04:00
.dockerignore UI-E2E Image for testing (#2944) 2024-08-12 14:09:20 -04:00
.eslintrc.json Add check to make sure no framework breakages happen (#2450) 2024-06-10 08:21:48 -04:00
.gitignore AAP-28426 change get to getBy, add test for download buttons (#2908) 2024-08-19 11:59:30 +02:00
.prettierignore Add check to make sure no framework breakages happen (#2450) 2024-06-10 08:21:48 -04:00
.prettierrc.json Upgrade package dependencies (#782) 2023-08-15 16:42:45 -04:00
.sonarcloud.properties test excluding all files from duplication detection 2024-08-15 14:07:21 -04:00
babel.config.json
CONTRIBUTING.md Add docs for string casing, adds href to side nav (#929) 2023-09-26 09:50:05 -04:00
cypress.awx.config.ts Enable UI Tests to Run in Downstream Build (#2618) 2024-07-03 18:09:34 -04:00
cypress.base.config.ts Fix Component Tests (#2986) 2024-08-15 13:28:14 -04:00
cypress.config.ts Cypress Component Tests use one dashboard (#1518) 2024-01-25 15:57:29 -05:00
cypress.d.ts
cypress.eda.config.ts Enable UI Tests to Run in Downstream Build (#2618) 2024-07-03 18:09:34 -04:00
cypress.hub.config.ts docker images - update environment variables (#927) 2023-09-20 15:23:48 -04:00
Dockerfile [AAP-29480] Remove old Event Streams code. Rename webhooks to event streams (#3007) 2024-08-23 11:49:33 -04:00
i18next-parser.config.cjs Lines up supported locales with AWX (#547) 2023-05-11 13:01:05 -04:00
LICENSE.md
package-lock.json dependencies - cleanup for production build (#2701) 2024-07-15 13:48:48 -04:00
package.json Rename Cypress tag to cyLabel (#3001) 2024-08-16 12:43:54 -04:00
README.md Change all /api/automation-hub to /api/galaxy, except console.redhat.com references (#2867) 2024-08-06 14:25:05 +00:00
tsconfig.cjs.json Adds credential detail view (#201) 2023-04-13 16:35:30 -04:00
tsconfig.json Enable UI Tests to Run in Downstream Build (#2618) 2024-07-03 18:09:34 -04:00
ui.code-workspace ui.code-workspace 2024-08-13 13:01:12 -04:00

Ansible UI

UI projects for Ansible.

Getting Started

  1. 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.

  2. Clone Repository

    git clone git@github.com:ansible/ansible-ui.git
    
  3. Install Package Dependencies

    npm ci
    

Environment Variables

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)
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)
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/galaxy)
HUB_GALAXYKIT_COMMAND The galaxykit command. (galaxykit --ignore-certs)
export AWX_SERVER=https://localhost:8043
export AWX_USERNAME='my-user'
export AWX_PASSWORD='my-password'

export EDA_SERVER=http://localhost:8000
export EDA_USERNAME='my-user'
export EDA_PASSWORD='my-password'

export HUB_SERVER=http://localhost:5001
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 Scripts

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

Documentation

Code of Conduct

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 codeofconduct@ansible.com