Skip to content

Commit

Permalink
Chore/enable integration tests (#386)
Browse files Browse the repository at this point in the history
 fixes build issues around mock servers used for integration tests
  • Loading branch information
ryan-haley-code42 committed Nov 8, 2021
1 parent 37302bb commit 4ad1f52
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,28 @@ jobs:
uses: codecov/codecov-action@v1.0.7
with:
file: py42/coverage.xml
# - name: Checkout mock servers
# uses: actions/checkout@v2
# with:
# repository: code42/code42-mock-servers
# path: code42-mock-servers
# - name: Add mock servers host addresses
# run: |
# sudo tee -a /etc/hosts <<EOF
# 127.0.0.1 core
# 127.0.0.1 alerts
# 127.0.0.1 alert-rules
# 127.0.0.1 detection-lists
# 127.0.0.1 audit-log
# 127.0.0.1 file-events
# 127.0.0.1 storage
# 127.0.0.1 preservation-data-service
# 127.0.0.1 exfiltration-data-service
# 127.0.0.1 connected-server
# 127.0.0.1 cases
# 127.0.0.1 trusted-activities-service
# EOF
# - name: Start up the mock servers
# run: cd code42-mock-servers; docker-compose up -d --build
# - name: Run the integration tests
# run: cd py42; tox -e integration
- name: Checkout mock servers
uses: actions/checkout@v2
with:
repository: code42/code42-mock-servers
path: code42-mock-servers
- name: Add mock servers host addresses
run: |
sudo tee -a /etc/hosts <<EOF
127.0.0.1 core
127.0.0.1 alerts
127.0.0.1 alert-rules
127.0.0.1 detection-lists
127.0.0.1 audit-log
127.0.0.1 file-events
127.0.0.1 storage
127.0.0.1 preservation-data-service
127.0.0.1 exfiltration-data-service
127.0.0.1 connected-server
127.0.0.1 cases
127.0.0.1 trusted-activities-service
EOF
- name: Start up the mock servers
run: cd code42-mock-servers; docker-compose up -d --build
- name: Run the integration testss
run: cd py42; tox -e integration
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ commands = pre-commit run --all-files --show-diff-on-failure

[testenv:integration]
commands =
pytest -v -rsxX -l --tb=short --strict -m integration
pytest -v -rsxX -l --tb=short --strict-markers -m integration

[pytest]
markers =
Expand Down

0 comments on commit 4ad1f52

Please sign in to comment.