From 75bb7aae147ab933c88ba7af4cb60293a667b80c Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 17 Sep 2019 15:58:35 -0400 Subject: update references to collection folder --- .gitignore | 4 ++-- Makefile | 10 +++++----- awx_collection/README.md | 4 ++-- setup.cfg | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 51a1cbce30..085bd24776 100644 --- a/.gitignore +++ b/.gitignore @@ -137,5 +137,5 @@ use_dev_supervisor.txt # Ansible module tests awx_collection_test_venv/ -awx_modules/*.tar.gz -awx_modules/galaxy.yml +awx_collection/*.tar.gz +awx_collection/galaxy.yml diff --git a/Makefile b/Makefile index b493c51826..db38368173 100644 --- a/Makefile +++ b/Makefile @@ -384,7 +384,7 @@ prepare_collection_venv: ln -s /usr/lib/python2.7/site-packages/ansible $(COLLECTION_VENV)/ansible $(VENV_BASE)/awx/bin/pip install --target=$(COLLECTION_VENV) git+https://github.com/ansible/tower-cli.git -COLLECTION_TEST_DIRS ?= awx_modules/test/awx +COLLECTION_TEST_DIRS ?= awx_collection/test/awx COLLECTION_PACKAGE_NAME ?= awx COLLECTION_NAMESPACE_NAME ?= awx @@ -392,18 +392,18 @@ test_collection: @if [ "$(VENV_BASE)" ]; then \ . $(VENV_BASE)/awx/bin/activate; \ fi; \ - PYTHONPATH=$(COLLECTION_VENV):/awx_devel/awx_modules:$PYTHONPATH py.test $(COLLECTION_TEST_DIRS) + PYTHONPATH=$(COLLECTION_VENV):/awx_devel/awx_collection:$PYTHONPATH py.test $(COLLECTION_TEST_DIRS) flake8_collection: - flake8 awx_modules/ # Different settings, in main exclude list + flake8 awx_collection/ # Different settings, in main exclude list prepare_test_collection: prepare_collection_venv test_collection # deprecated test_collection_all: prepare_collection_venv test_collection flake8_collection build_collection: - ansible-playbook -i localhost, awx_modules/template_galaxy.yml -e package_name=$(COLLECTION_PACKAGE_NAME) -e namespace_name=$(COLLECTION_NAMESPACE_NAME) -e package_version=$(VERSION) - ansible-galaxy collection build awx_modules --output-path=awx_modules + ansible-playbook -i localhost, awx_collection/template_galaxy.yml -e package_name=$(COLLECTION_PACKAGE_NAME) -e namespace_name=$(COLLECTION_NAMESPACE_NAME) -e package_version=$(VERSION) + ansible-galaxy collection build awx_collection --output-path=awx_collection test_unit: @if [ "$(VENV_BASE)" ]; then \ diff --git a/awx_collection/README.md b/awx_collection/README.md index 25313673ff..eaa1b29980 100644 --- a/awx_collection/README.md +++ b/awx_collection/README.md @@ -25,7 +25,7 @@ to be the python in that virtual environment. ## Running Tests Tests to verify compatibility with the most recent AWX code are -in `awx_modules/test/awx`. These tests require that python packages +in `awx_collection/test/awx`. These tests require that python packages are available for all of `awx`, `ansible`, `tower_cli`, and the collection itself. @@ -34,7 +34,7 @@ in the `awx_collection_test_venv` folder so that `make test_collection` can be ran to actually run the tests. A single test can be ran via: ``` -make test_collection MODULE_TEST_DIRS=awx_modules/test/awx/test_organization.py +make test_collection MODULE_TEST_DIRS=awx_collection/test/awx/test_organization.py ``` ## Building diff --git a/setup.cfg b/setup.cfg index 227322dace..beb4521b99 100755 --- a/setup.cfg +++ b/setup.cfg @@ -18,4 +18,4 @@ exclude=.tox,venv,awx/lib/site-packages,awx/plugins/inventory/ec2.py,awx/plugins [flake8] max-line-length=160 ignore=E201,E203,E221,E225,E231,E241,E251,E261,E265,E303,W291,W391,W293,E731,W504 -exclude=.tox,venv,awx/lib/site-packages,awx/plugins/inventory,awx/ui,awx/api/urls.py,awx/main/migrations,awx/main/tests/data,node_modules/,awx/projects/,tools/docker,awx/settings/local_*.py,installer/openshift/settings.py,build/,installer/,awxkit/test,awx_modules/ +exclude=.tox,venv,awx/lib/site-packages,awx/plugins/inventory,awx/ui,awx/api/urls.py,awx/main/migrations,awx/main/tests/data,node_modules/,awx/projects/,tools/docker,awx/settings/local_*.py,installer/openshift/settings.py,build/,installer/,awxkit/test,awx_collection/ -- cgit v1.2.3