Skip to content

Commit

Permalink
Add self-signed cert to panel and update testing procedures (#137)
Browse files Browse the repository at this point in the history
* WIP

* WIP
  • Loading branch information
maxhoesel authored Aug 1, 2023
1 parent ccfc004 commit 7339fe6
Show file tree
Hide file tree
Showing 37 changed files with 441 additions and 532 deletions.
23 changes: 0 additions & 23 deletions .ansible-lint

This file was deleted.

54 changes: 21 additions & 33 deletions .circleci/config.yml
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:
Expand All @@ -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
20 changes: 20 additions & 0 deletions .config/ansible-lint.yaml
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
33 changes: 33 additions & 0 deletions .config/molecule/config.yml
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
Loading

0 comments on commit 7339fe6

Please sign in to comment.