-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add self-signed cert to panel and update testing procedures (#137)
* WIP * WIP
- Loading branch information
Showing
37 changed files
with
441 additions
and
532 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,31 +1,7 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
collection-testing: maxhoesel-ansible/[email protected] | ||
|
||
jobs: | ||
modules-sanity: | ||
executor: collection-testing/default | ||
steps: | ||
- checkout | ||
- collection-testing/install-podman-on-ubuntu | ||
- collection-testing/install-requirements-txt | ||
- run: | ||
command: tests/test-modules-sanity | ||
environment: | ||
TEST_RETRIES: 3 | ||
TEST_RETRY_DELAY: 300 | ||
modules-integration: | ||
executor: collection-testing/default | ||
steps: | ||
- checkout | ||
- collection-testing/install-podman-on-ubuntu | ||
- collection-testing/install-requirements-txt | ||
- run: | ||
command: tests/test-modules-integration | ||
environment: | ||
TEST_RETRIES: 3 | ||
TEST_RETRY_DELAY: 300 | ||
collection-testing: maxhoesel-ansible/[email protected] | ||
|
||
filters: &semver-tagged | ||
tags: | ||
|
@@ -37,18 +13,30 @@ filters: &semver-tagged | |
workflows: | ||
ci: | ||
jobs: | ||
- collection-testing/pre-commit-lint | ||
#- collection-testing/antsibull-docs | ||
- collection-testing/tox-role-scenarios: | ||
parallelism: 16 | ||
- collection-testing/pre-commit-lint: | ||
name: Lint | ||
#- collection-testing/antsibull-docs: | ||
# name: Generate Docs | ||
#- collection-testing/run-tox-environments: | ||
# name: Test Modules | ||
# match-environments: \-test\- | ||
# parallelism: 3 | ||
# resource-class: medium | ||
# retries: 1 | ||
# retry-delay: 60 | ||
- collection-testing/run-tox-environments: | ||
name: Test Roles | ||
match-environments: roles | ||
# number of scenarios * ansible versions to test | ||
parallelism: 12 | ||
resource-class: large | ||
retries: 3 | ||
retry-delay: 300 | ||
retries: 1 | ||
retry-delay: 60 | ||
- collection-testing/publish-github: | ||
name: Publish Release to GitHub | ||
context: collection-publishing | ||
filters: *semver-tagged | ||
- collection-testing/publish-galaxy: | ||
name: Publish to Galaxy | ||
context: collection-publishing | ||
filters: *semver-tagged | ||
- modules-sanity | ||
#- modules-integration |
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 @@ | ||
--- | ||
# Don't automatically install roles from galaxy | ||
offline: true | ||
|
||
exclude_paths: | ||
- ".cache" | ||
- tests/integration/targets/ | ||
- .github/ | ||
|
||
# Unfortunately, warnings only show up when running ansible-lint normally, not during pre-commit | ||
warn_list: | ||
- "name[missing]" # this is *sometimes* okay, like with a block or simple include | ||
|
||
skip_list: | ||
- "key-order[task]" # Lots of false positives from this one, any equals sign in a command will trigger it | ||
- "no-free-form" # ... really? | ||
- "galaxy[version-incorrect]" # This errors on 0.x versions, which we are totally okay with | ||
- "fqcn-builtins" # While we should migrate away from the old builtins, this is in no way urgent | ||
- "name[casing]" # too noisy, does not account for names starting with variable names | ||
- "name[play]" # The only plays in a collection are going to be molecule plays, which already have a name through their filename |
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,33 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
|
||
driver: | ||
name: podman | ||
|
||
provisioner: | ||
name: ansible | ||
env: {} | ||
# Cannot enable pipelining for podman at this time: | ||
# https://github.com/ansible-community/molecule-podman/issues/2 | ||
#ANSIBLE_PIPELINING: false | ||
inventory: | ||
group_vars: | ||
all: {} | ||
|
||
scenario: | ||
test_sequence: | ||
- destroy | ||
- dependency | ||
- syntax | ||
- create | ||
- prepare | ||
- converge | ||
- idempotence | ||
- check # also run check mode in regular tests | ||
- side_effect | ||
- verify | ||
- destroy | ||
|
||
verifier: | ||
name: ansible |
Oops, something went wrong.