-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add todos * we accept this as a variable so we should respect it * remove commented out code * no passwords in the data files * Push to github * specifically specify our database * escape the password just in case * empty commit * try this syntax * empty commit * remote can't add users * remove todo * Push integration tests * export * export vars * check inventory * try running task directly * test with location * commit changes * push changes * Control snmp listen in observium * disable ipv6 * Commit run in github action * try with provision litmus * Run integration tests * Install the module too!!! * Switch to provision.yaml * Move provision yaml * Remove centos7 add ubuntu * add puppet facts * remove do * with os family * lowercase strings * Fix serverspec * added more checks * describe not descrube * Try with other " * Test again * remove sed * Test with snmp v6 listen enabled * set override * Setup vagrant images * added unit tests * test unit tests * Commit latest unit tests * fix some lint issues * added lint tests * remove old plan * Update reference.md * Add lint test * update name * Fix lint, disable ubuntu 20.04 litmus * added cron serverspec entry * Added more tests * check os release * Fix variable and cron * Updated serverspec * Test curl * test with should * with full path * Test with stdout * test with simple command * attempt with new syntax * with match * test * revert * with quotes * Restore code * Disable breaking test * added centos7 image * Added stream 9 image * Push with rhel9 enhancements * Fix escape sequence * push changes * fixed gpg content * More fixes * update code * Check for os major * Change to int * Check os release * Check for rhel9 * Verify its rhel8 before installing package * Switch from and to && * Changes to github actions * Bump ruby version * with puppet 7 and 8 * remove nightly version * Dwongrade apache * Bump deps in metadata * Fix label * Set gem version * Run new test * test again * with inline * cat githuboutput * Restore to old matrix * Fix matrix file * switch to using contain * Revert "switch to using contain" This reverts commit 6dfd8f6. * Exception for ubuntu 2204 * try with apply * Switch to apply manifest * more chnanges * Run apply twice for 2204 * Check if hiera_config works with litmus * set values * fix syntax * Switch to firewall module for ubuntu * Update reference, drop other traffic * manage firewall * dsiable port 80 * remove default rules for testing * fix * enable icmp * fix ordering * disable fw ubuntu * Update readme and changelog * last commit * Run unit test only on PR * bump lint and unit test to use matrix * Remove check for repo owner * added password req content * Only run on PR * bump version * Readme updates --------- Co-authored-by: tyler bailey <baile320@umn.edu>
- Loading branch information
1 parent
8c22c28
commit b8c1547
Showing
36 changed files
with
1,431 additions
and
316 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
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,99 @@ | ||
--- | ||
name: "Acceptance Testing" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
|
||
setup_matrix: | ||
name: "Setup Test Matrix" | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
matrix: ${{ steps.get-matrix.outputs.matrix }} | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: Setup Integration Test Matrix | ||
id: get-matrix | ||
run: | | ||
echo "matrix=$(cat test_matrix.json | tr -s '\n' ' ')" >> $GITHUB_OUTPUT | ||
cat $GITHUB_OUTPUT | ||
acceptance: | ||
name: "Acceptance tests (${{matrix.collection.agent_version}})" | ||
needs: | ||
- setup_matrix | ||
if: ${{ needs.setup_matrix.outputs.matrix != '{}' }} | ||
|
||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{fromJson(needs.setup_matrix.outputs.matrix)}} | ||
|
||
env: | ||
PUPPET_GEM_VERSION: ${{matrix.collection.gem_version}} | ||
FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' # why is this set? | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: Create the fixtures directory | ||
run: | | ||
bundle exec rake spec_prep | ||
- name: check vars | ||
run: | | ||
export | ||
- name: Provision test environment | ||
run: | | ||
bundle exec rake 'litmus:provision_list[docker]' | ||
FILE='spec/fixtures/litmus_inventory.yaml' | ||
- name: Install Agents and module | ||
run: | | ||
# bundle exec rake 'litmus:install_agent' | ||
bundle exec rake 'litmus:install_agent[${{ matrix.collection.agent_version }}]' | ||
bundle exec rake litmus:install_module | ||
- name: Run integration tests | ||
run: | | ||
bundle exec rake litmus:acceptance:parallel | ||
- name: Remove test environment | ||
if: ${{ always() }} | ||
continue-on-error: true | ||
run: | | ||
ls -lh ./spec/fixtures/ | ||
cat ./spec/fixtures/litmus_inventory.yaml | ||
bundle exec rake 'litmus:tear_down' |
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,71 @@ | ||
--- | ||
name: "Lint testing" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
setup_matrix: | ||
name: "Setup Test Matrix" | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
matrix: ${{ steps.get-matrix.outputs.matrix }} | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: Setup Integration Test Matrix | ||
id: get-matrix | ||
run: | | ||
echo "matrix=$(cat test_matrix.json | tr -s '\n' ' ')" >> $GITHUB_OUTPUT | ||
cat $GITHUB_OUTPUT | ||
lint: | ||
name: "Lint tests (${{matrix.collection.agent_version}})" | ||
needs: | ||
- setup_matrix | ||
if: ${{ needs.setup_matrix.outputs.matrix != '{}' }} | ||
|
||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{fromJson(needs.setup_matrix.outputs.matrix)}} | ||
|
||
env: | ||
PUPPET_GEM_VERSION: ${{matrix.collection.gem_version}} | ||
FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' # why is this set? | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: "Run tests" | ||
run: | | ||
bundle exec rake validate |
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,71 @@ | ||
--- | ||
name: "Unit Testing" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
setup_matrix: | ||
name: "Setup Test Matrix" | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
matrix: ${{ steps.get-matrix.outputs.matrix }} | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: Setup Integration Test Matrix | ||
id: get-matrix | ||
run: | | ||
echo "matrix=$(cat test_matrix.json | tr -s '\n' ' ')" >> $GITHUB_OUTPUT | ||
cat $GITHUB_OUTPUT | ||
Unit: | ||
name: "Unit tests (${{matrix.collection.agent_version}})" | ||
needs: | ||
- setup_matrix | ||
if: ${{ needs.setup_matrix.outputs.matrix != '{}' }} | ||
|
||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{fromJson(needs.setup_matrix.outputs.matrix)}} | ||
|
||
env: | ||
PUPPET_GEM_VERSION: ${{matrix.collection.gem_version}} | ||
FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' # why is this set? | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: "Run tests" | ||
run: | | ||
bundle exec rake parallel_spec |
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
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
Oops, something went wrong.