Skip to content

Commit

Permalink
Merge pull request #60 from stfc/Change_consumer_flow
Browse files Browse the repository at this point in the history
Change consumer flow
  • Loading branch information
meoflynn authored May 19, 2023
2 parents c95af54 + 335964e commit 8394076
Show file tree
Hide file tree
Showing 25 changed files with 1,282 additions and 1,229 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/rabbit_consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,26 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive apt-get -yq install libkrb5-dev
pip install -r OpenStack-Rabbit-Consumer/requirements.txt
pip install -r OpenStack-Rabbit-Consumer/requirements-test.txt
- name: Run tests
# Using Python3 to launch the module sets up the Python path for us
run: cd OpenStack-Rabbit-Consumer && python3 -m pytest .
run: cd OpenStack-Rabbit-Consumer && python3 -m coverage run -m pytest .

- name: Analyse with pylint
run: |
cd OpenStack-Rabbit-Consumer && pylint --recursive yes rabbit_consumer test
- name: Prepare coverage
run: |
cd OpenStack-Rabbit-Consumer && python -m coverage xml
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
files: OpenStack-Rabbit-Consumer/coverage.xml
fail_ci_if_error: true
flags: rabbit_consumer

push_dev_image_harbor:
runs-on: ubuntu-latest
needs: test_and_lint
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea/
__pycache__/
venv/

.coverage
coverage.xml
7 changes: 1 addition & 6 deletions OpenStack-Rabbit-Consumer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY . .

ENV AQ_ARCHETYPE=NOT_SET \
AQ_DOMAIN=NOT_SET \
AQ_PERSONALITY=NOT_SET \
AQ_PREFIX=NOT_SET \
ENV AQ_PREFIX=NOT_SET \
AQ_URL=NOT_SET\
#
KRB5CCNAME=NOT_SET \
Expand All @@ -28,8 +25,6 @@ ENV AQ_ARCHETYPE=NOT_SET \
#
OPENSTACK_AUTH_URL=NOT_SET \
OPENSTACK_COMPUTE_URL=NOT_SET \
OPENSTACK_DOMAIN_NAME=NOT_SET \
OPENSTACK_PROJECT_ID=NOT_SET \
OPENSTACK_USERNAME=NOT_SET \
OPENSTACK_PASSWORD=NOT_SET

Expand Down
Loading

0 comments on commit 8394076

Please sign in to comment.