Projet

Général

Profil

Révision bd5145ab

IDbd5145ab3ac0ed0b928057bd7a5bb0c7b49b095f
Parent 7db6f797
Enfant c4b1b93b

Ajouté par Steve Traylen il y a plus de 4 ans

Add basic configuration validation acceptance test (#38)

  • Add basic configuration validation acceptance test

It is not possible to start the nftables service within docker so
the service is altered to only validate the service
configuration resulting from concat constructed files and nft inclusions.

Voir les différences:

.github/workflows/ci.yml
45 45
          bundler-cache: true
46 46
      - name: Run tests
47 47
        run: bundle exec rake
48

  
49
  acceptance:
50
    needs: setup_matrix
51
    runs-on: ubuntu-latest
52
    env:
53
      BUNDLE_WITHOUT: development:test:release
54
    strategy:
55
      fail-fast: false
56
      matrix:
57
        setfile: ${{fromJson(needs.setup_matrix.outputs.beaker_setfiles)}}
58
        puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}}
59
    name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }}
60
    steps:
61
      - name: Enable IPv6 on docker
62
        run: |
63
          echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
64
          sudo service docker restart
65
      - uses: actions/checkout@v2
66
      - name: Setup ruby
67
        uses: ruby/setup-ruby@v1
68
        with:
69
          ruby-version: '2.7'
70
          bundler-cache: true
71
      - name: Run tests
72
        run: bundle exec rake beaker
73
        env:
74
          BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet.collection }}
75
          BEAKER_setfile: ${{ matrix.setfile.value }}

Formats disponibles : Unified diff