Skip to content

Commit

Permalink
Add SSNv2 test deploymend with range format error
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Nov 4, 2024
1 parent 516baa6 commit 8b3b298
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ca-ssnv2-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1324,3 +1324,36 @@ jobs:
if: always()
run: |
docker exec pki find /var/lib/pki/pki-tomcat/logs/ca -name "debug.*" -exec cat {} \;
####################################################################################################
# Try to install with wrong parameter foramt
- name: Create CA with unsupported range format
run: |
cat > expected <<EOF
Loading deployment configuration from /usr/share/pki/server/examples/installation/ca.cfg.
Installing CA into /var/lib/pki/pki-tomcat.
Installation failed: pki_serial_number_range_start format not valid, expecting 0x...
EOF
docker exec pki pkispawn \
-f /usr/share/pki/server/examples/installation/ca.cfg \
-s CA \
-D pki_ds_url=ldap://ds.example.com:3389 \
-D pki_request_id_generator=legacy2 \
-D pki_request_number_range_start=1 \
-D pki_request_number_range_end=10 \
-D pki_request_number_range_increment=10 \
-D pki_request_number_range_minimum=5 \
-D pki_request_number_range_transfer=5 \
-D pki_cert_id_generator=legacy2 \
-D pki_serial_number_range_start=9 \
-D pki_serial_number_range_end=18 \
-D pki_serial_number_range_increment=12 \
-D pki_serial_number_range_minimum=9 \
-D pki_serial_number_range_transfer=9 \
-v | tee actual || true
diff expected actual

0 comments on commit 8b3b298

Please sign in to comment.