Skip to content

Commit

Permalink
Update sequential tests to the new generator update command
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Oct 18, 2024
1 parent e83c163 commit 4fb546b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 17 deletions.
47 changes: 39 additions & 8 deletions .github/workflows/ca-clone-sequential-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,37 @@ jobs:
docker exec primary pki-server ca-range-generator-update --type cert legacy2
docker exec primary pki-server start --wait
- name: Check cert range objects
run: |
tests/ca/bin/ca-cert-range-objects.sh primaryds | tee output
# cert ranges should remain the same
cat > expected << EOF
SecurePort: 8443
beginRange: 31
endRange: 48
host: secondary.example.com
SecurePort: 8443
beginRange: 19
endRange: 48
host: primary.example.com
EOF
diff expected output
- name: Check cert next range
run: |
tests/ca/bin/ca-cert-next-range.sh primaryds | tee output
# cert nextRange should remain the same
cat > expected << EOF
nextRange: 49
EOF
diff expected output
- name: Switch secondary to legacy2
run: |
docker exec secondary pki-server stop
Expand Down Expand Up @@ -1095,13 +1126,13 @@ jobs:
# cert ranges should remain the same
cat > expected << EOF
SecurePort: 8443
beginRange: 13
endRange: 30
beginRange: 19
endRange: 48
host: primary.example.com
SecurePort: 8443
beginRange: 31
endRange: 48
beginRange: 49
endRange: 72
host: secondary.example.com
EOF
Expand Down Expand Up @@ -1349,13 +1380,13 @@ jobs:
cat > expected << EOF
SecurePort: 8443
beginRange: 13
endRange: 30
beginRange: 19
endRange: 48
host: primary.example.com
SecurePort: 8443
beginRange: 31
endRange: 48
beginRange: 49
endRange: 72
host: secondary.example.com
SecurePort: 8443
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ca-sequential-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ jobs:
tests/ca/bin/ca-cert-next-range.sh ds | tee output
cat > expected << EOF
nextRange: 55
nextRange: 85
EOF
diff expected output
Expand Down Expand Up @@ -1242,13 +1242,13 @@ jobs:
# new cert range should be 27 - 42 decimal (total: 16)
cat > expected << EOF
SecurePort: 8443
beginRange: 19
endRange: 36
beginRange: 25
endRange: 54
host: pki.example.com
SecurePort: 8443
beginRange: 37
endRange: 54
beginRange: 55
endRange: 84
host: pki.example.com
EOF
Expand Down Expand Up @@ -1430,13 +1430,13 @@ jobs:
cat > expected << EOF
SecurePort: 8443
beginRange: 19
endRange: 36
beginRange: 25
endRange: 54
host: pki.example.com
SecurePort: 8443
beginRange: 37
endRange: 54
beginRange: 55
endRange: 84
host: pki.example.com
SecurePort: 8443
Expand Down

0 comments on commit 4fb546b

Please sign in to comment.