-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -830,6 +830,43 @@ jobs: | |
if: always() | ||
run: docker compose -p $INFRAHUB_BUILD_NAME down -v --remove-orphans --rmi local | ||
|
||
backend-docker-integration: | ||
if: | | ||
always() && !cancelled() && | ||
!contains(needs.*.result, 'failure') && | ||
!contains(needs.*.result, 'cancelled') && | ||
needs.files-changed.outputs.backend == 'true' | ||
needs: ["files-changed", "yaml-lint", "python-lint"] | ||
runs-on: | ||
group: huge-runners | ||
timeout-minutes: 45 | ||
env: | ||
INFRAHUB_DB_TYPE: neo4j | ||
steps: | ||
- name: "Check out repository code" | ||
uses: "actions/checkout@v4" | ||
with: | ||
submodules: true | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: "Setup git credentials" | ||
run: "git config --global user.name 'Infrahub' && \ | ||
git config --global user.email '[email protected]' && \ | ||
git config --global --add safe.directory '*' && \ | ||
git config --global credential.usehttppath true && \ | ||
git config --global credential.helper /usr/local/bin/infrahub-git-credential" | ||
- name: "Setup Python environment" | ||
run: | | ||
poetry config virtualenvs.create true --local | ||
poetry env use 3.12 | ||
- name: "Install dependencies" | ||
run: "poetry install --no-interaction --no-ansi" | ||
- name: "Install dependencies" | ||
run: "poetry run pytest tests/integration_docker/" | ||
|
||
|
||
# ------------------------------------------ Benchmarks ------------------------------------------------ | ||
backend-benchmark: | ||
needs: | ||
|
21 changes: 21 additions & 0 deletions
21
backend/tests/integration_docker/test_files/delete_interface_schema.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
version: "1.0" | ||
nodes: | ||
- name: Device | ||
namespace: Network | ||
human_friendly_id: ['hostname__value'] | ||
attributes: | ||
- name: hostname | ||
kind: Text | ||
unique: true | ||
- name: model | ||
kind: Text | ||
- name: Interface | ||
namespace: Network | ||
state: absent | ||
attributes: | ||
- name: name | ||
kind: Text | ||
- name: description | ||
kind: Text | ||
optional: true | ||
20 changes: 20 additions & 0 deletions
20
backend/tests/integration_docker/test_files/device_and_interface_schema.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
version: "1.0" | ||
nodes: | ||
- name: Device | ||
namespace: Network | ||
human_friendly_id: ['hostname__value'] | ||
attributes: | ||
- name: hostname | ||
kind: Text | ||
unique: true | ||
- name: model | ||
kind: Text | ||
- name: Interface | ||
namespace: Network | ||
attributes: | ||
- name: name | ||
kind: Text | ||
- name: description | ||
kind: Text | ||
optional: true | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters