Skip to content

Commit

Permalink
Move CI test code to codebase rather than .github (#549)
Browse files Browse the repository at this point in the history
* Move CI test code to codebase rather than .github

* Fixes to linting and doc paths

* Trigger Git Commit
  • Loading branch information
Tompage1994 authored Mar 22, 2023
1 parent 3839b01 commit b07941a
Show file tree
Hide file tree
Showing 197 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ Python's pre-commit tool can be installed, and hooks installed, to cleanup white

1. Create a local virtual environment for controller_configurations (suggested, its your system!)
2. Use pip to install pre-commit in your environment of choice: `pip install pre-commit`
3. Install pre-commit hooks with `pre-commit install --install-hooks -c .github/workflow-config/.pre-commit-config.yml`
3. Install pre-commit hooks with `pre-commit install --install-hooks -c .pre-commit-config.yaml`
4. With hooks installed, they will be run automatically when you call `git commit`, blocking commit if any hooks fail.
5. [Optional] If you want to ignore hook failures and commit anyway, use `git commit -n`
6. [Optional] Run pre-commit checks at any time with `pre-commit run --all -c .github/workflow-config/.pre-commit-config.yml`.
6. [Optional] Run pre-commit checks at any time with `pre-commit run --all -c .pre-commit-config.yaml`.

Please see pre-commit documentation for further explanation: [Pre-commit](https://pre-commit.com/)

Expand All @@ -29,7 +29,7 @@ If you feel like getting your hands dirty, feel free to make the change yourself
1. Fork the repo on Github, and then clone it locally.
2. Create a branch named appropriately for the change you are going to make.
3. Make your code change.
4. If you are creating a new role, please add a test for it in our [testing playbook.](https://github.com/redhat-cop/controller_configuration/blob/devel/.github/tests/configure_controller.yml) by adding a new role entry and adding the appropriate yaml file with test data in the controller_configs directory.
4. If you are creating a new role, please add a test for it in our [testing playbook.](https://github.com/redhat-cop/controller_configuration/blob/devel/tests/configure_controller.yml) by adding a new role entry and adding the appropriate yaml file with test data in the controller_configs directory.
5. Add a changelog fragment in `changelogs/fragments` as per <https://docs.ansible.com/ansible/latest/community/development_process.html#changelogs>
6. Push your code change up to your forked repo.
7. Open a Pull Request to merge your changes to this repo. The comment box will be filled in automatically via a template.
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci_standalone_versioned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
run: ansible-galaxy collection install -r .github/collections/requirements.yml

- name: "Perform playbook tests"
run: ansible-playbook .github/tests/configure_controller.yml -e controller_hostname=localhost:8043 -v
run: ansible-playbook tests/configure_controller.yml -e controller_hostname=localhost:8043 -v

- name: "Perform export model playbook tests"
run: ansible-playbook .github/tests/configure_controller_export_model.yml -e controller_hostname=localhost:8043 -v
run: ansible-playbook tests/configure_controller_export_model.yml -e controller_hostname=localhost:8043 -v
...
2 changes: 1 addition & 1 deletion roles/filetree_create/automatetheautomation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Utilizing the Automation Webhook capabilities in Ansible Tower / Controller, you

## Automation Controller Workflow CasC

![Automation Controller Workflow CasC](https://github.com/redhat-cop/controller_configuration/blob/devel/.github/tests/automatetheautomation/pictures/AAP_CasC_Worflow.png)
![Automation Controller Workflow CasC](https://github.com/redhat-cop/controller_configuration/blob/devel/tests/automatetheautomation/pictures/AAP_CasC_Worflow.png)
*Automation Controller Workflow CasC*

The workflow will have the following steps:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
ignore_errors: true

- name: Wait for the controller node to be up
uri:
ansible.builtin.uri:
url: "https://{{ controller_hostname }}/api/v2/mesh_visualizer/"
user: "{{ controller_username }}"
password: "{{ controller_password }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
extensions: ["yml"]

- name: Wait for the controller to be up
uri:
ansible.builtin.uri:
url: "https://{{ controller_hostname }}/api/v2/mesh_visualizer/"
user: "{{ controller_username }}"
password: "{{ controller_password }}"
Expand All @@ -59,7 +59,6 @@
delay: 5



roles:
- {role: organizations, when: controller_organizations is defined, tags: organizations}
- {role: users, when: controller_user_accounts is defined, tags: users}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b07941a

Please sign in to comment.