Skip to content

Commit

Permalink
Rename SSNv1 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Oct 25, 2024
1 parent d8f2465 commit 6ae10a5
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 90 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: CA clone with Sequential Serial Numbers
name: CA clone with SSNv1
#
# This test creates a CA subsystem and its clone with sequential
# serial numbers for certs and requests, performs enrollments,
# and verifies that the number ranges are maintained properly in
# This test creates a CA subsystem and its clone with SSNv1 for certs and requests,
# performs enrollments, and verifies that the ranges are maintained properly in
# CS.cfg and DS.

on: workflow_call
Expand Down Expand Up @@ -166,7 +165,7 @@ jobs:
- name: Check request range objects
run: |
tests/ca/bin/ca-request-range-objects.sh primaryds | tee output
tests/ca/bin/ca-request-range-objects-ssnv1.sh primaryds | tee output
# since the remaining numbers in the current range are below
# the minimum, a new request range was allocated
Expand All @@ -182,15 +181,15 @@ jobs:
- name: Check cert range objects
run: |
tests/ca/bin/ca-cert-range-objects.sh primaryds | tee output
tests/ca/bin/ca-cert-range-objects-ssnv1.sh primaryds | tee output
# since the remaining numbers in the current range are not
# less than the minimum, no new cert range was allocated
diff /dev/null output
- name: Check request next range
run: |
tests/ca/bin/ca-request-next-range.sh primaryds | tee output
tests/ca/bin/ca-request-next-range-ssnv1.sh primaryds | tee output
# since there's an allocated request range, the nextRange
# should be endRange + 1 which is 21 decimal
Expand All @@ -202,7 +201,7 @@ jobs:
- name: Check cert next range
run: |
tests/ca/bin/ca-cert-next-range.sh primaryds | tee output
tests/ca/bin/ca-cert-next-range-ssnv1.sh primaryds | tee output
# since there's no allocated cert range, the nextRange should be
# dbs.endSerialNumber + 1 which is 13 hex (19 decimal), but due
Expand Down Expand Up @@ -375,7 +374,7 @@ jobs:
- name: Check request range objects
run: |
tests/ca/bin/ca-request-range-objects.sh secondaryds | tee output
tests/ca/bin/ca-request-range-objects-ssnv1.sh secondaryds | tee output
# request range should be the same
# NOTE: there's no indication that half of the range has
Expand All @@ -392,14 +391,14 @@ jobs:
- name: Check cert range objects
run: |
tests/ca/bin/ca-cert-range-objects.sh secondaryds | tee output
tests/ca/bin/ca-cert-range-objects-ssnv1.sh secondaryds | tee output
# cert range should be the same
diff /dev/null output
- name: Check request next range
run: |
tests/ca/bin/ca-request-next-range.sh secondaryds | tee output
tests/ca/bin/ca-request-next-range-ssnv1.sh secondaryds | tee output
# request nextRange should be the same
cat > expected << EOF
Expand All @@ -410,7 +409,7 @@ jobs:
- name: Check cert next range
run: |
tests/ca/bin/ca-cert-next-range.sh secondaryds | tee output
tests/ca/bin/ca-cert-next-range-ssnv1.sh secondaryds | tee output
# cert nextRange should be the same
cat > expected << EOF
Expand Down Expand Up @@ -551,7 +550,7 @@ jobs:
- name: Check request range objects
run: |
tests/ca/bin/ca-request-range-objects.sh primaryds | tee output
tests/ca/bin/ca-request-range-objects-ssnv1.sh primaryds | tee output
# request range should be the same
cat > expected << EOF
Expand All @@ -566,14 +565,14 @@ jobs:
- name: Check cert range objects
run: |
tests/ca/bin/ca-cert-range-objects.sh primaryds | tee output
tests/ca/bin/ca-cert-range-objects-ssnv1.sh primaryds | tee output
# cert range should be the same
diff /dev/null output
- name: Check request next range
run: |
tests/ca/bin/ca-request-next-range.sh primaryds | tee output
tests/ca/bin/ca-request-next-range-ssnv1.sh primaryds | tee output
# request nextRange should be the same
cat > expected << EOF
Expand All @@ -584,7 +583,7 @@ jobs:
- name: Check cert next range
run: |
tests/ca/bin/ca-cert-next-range.sh primaryds | tee output
tests/ca/bin/ca-cert-next-range-ssnv1.sh primaryds | tee output
# cert nextRange should be the same
cat > expected << EOF
Expand Down Expand Up @@ -741,7 +740,7 @@ jobs:
- name: Check request range objects
run: |
tests/ca/bin/ca-request-range-objects.sh primaryds | tee output
tests/ca/bin/ca-request-range-objects-ssnv1.sh primaryds | tee output
# since the remaining numbers are below the minimum in the
# secondary CA, a new cert request should be allocated for it
Expand All @@ -762,7 +761,7 @@ jobs:
- name: Check cert range objects
run: |
tests/ca/bin/ca-cert-range-objects.sh primaryds | tee output
tests/ca/bin/ca-cert-range-objects-ssnv1.sh primaryds | tee output
# since the remaining numbers are below the minimum in both primary
# and secondary CA, new cert ranges should be allocated for them
Expand All @@ -783,7 +782,7 @@ jobs:
- name: Check request next range
run: |
tests/ca/bin/ca-request-next-range.sh primaryds | tee output
tests/ca/bin/ca-request-next-range-ssnv1.sh primaryds | tee output
# request nextRange should be 31 decimal
cat > expected << EOF
Expand All @@ -794,7 +793,7 @@ jobs:
- name: Check cert next range
run: |
tests/ca/bin/ca-cert-next-range.sh primaryds | tee output
tests/ca/bin/ca-cert-next-range-ssnv1.sh primaryds | tee output
# cert nextRange should be 49 decimal
cat > expected << EOF
Expand Down Expand Up @@ -932,7 +931,7 @@ jobs:
- name: Check request range objects
run: |
tests/ca/bin/ca-request-range-objects.sh primaryds | tee output
tests/ca/bin/ca-request-range-objects-ssnv1.sh primaryds | tee output
# request ranges should remain the same
cat > expected << EOF
Expand All @@ -952,7 +951,7 @@ jobs:
- name: Check cert range objects
run: |
tests/ca/bin/ca-cert-range-objects.sh primaryds | tee output
tests/ca/bin/ca-cert-range-objects-ssnv1.sh primaryds | tee output
# cert ranges should remain the same
cat > expected << EOF
Expand All @@ -972,7 +971,7 @@ jobs:
- name: Check request next range
run: |
tests/ca/bin/ca-request-next-range.sh primaryds | tee output
tests/ca/bin/ca-request-next-range-ssnv1.sh primaryds | tee output
# request nextRange should remain the same
cat > expected << EOF
Expand All @@ -983,7 +982,7 @@ jobs:
- name: Check cert next range
run: |
tests/ca/bin/ca-cert-next-range.sh primaryds | tee output
tests/ca/bin/ca-cert-next-range-ssnv1.sh primaryds | tee output
# cert nextRange should remain the same
cat > expected << EOF
Expand All @@ -1009,7 +1008,7 @@ jobs:
- name: Check request range objects
run: |
tests/ca/bin/ca-request-range-objects.sh primaryds | tee output
tests/ca/bin/ca-request-range-objects-ssnv1.sh primaryds | tee output
# request ranges should remain the same
cat > expected << EOF
Expand All @@ -1029,7 +1028,7 @@ jobs:
- name: Check request next range
run: |
tests/ca/bin/ca-request-next-range.sh primaryds | tee output
tests/ca/bin/ca-request-next-range-ssnv1.sh primaryds | tee output
# request nextRange should remain the same
cat > expected << EOF
Expand All @@ -1040,7 +1039,7 @@ jobs:
- name: Check cert range objects
run: |
tests/ca/bin/ca-cert-range-objects.sh primaryds | tee output
tests/ca/bin/ca-cert-range-objects-ssnv1.sh primaryds | tee output
# cert ranges should remain the same but converted from hex to decimal
# the range value for the primary move from 13-30 (hex) to 19-48 (dec)
Expand All @@ -1061,7 +1060,7 @@ jobs:
- name: Check cert next range
run: |
tests/ca/bin/ca-cert-next-range.sh primaryds | tee output
tests/ca/bin/ca-cert-next-range-ssnv1.sh primaryds | tee output
# cert nextRange should remain the same
cat > expected << EOF
Expand Down Expand Up @@ -1158,7 +1157,7 @@ jobs:
- name: Check request range objects
run: |
tests/ca/bin/ca-request-range-objects.sh primaryds | tee output
tests/ca/bin/ca-request-range-objects-ssnv1.sh primaryds | tee output
cat > expected << EOF
SecurePort: 8443
Expand Down Expand Up @@ -1187,7 +1186,7 @@ jobs:
- name: Check cert range objects
run: |
tests/ca/bin/ca-cert-range-objects.sh primaryds | tee output
tests/ca/bin/ca-cert-range-objects-ssnv1.sh primaryds | tee output
# cert ranges should remain the same but in dec.
# the range value for the primary move from 13-30 (hex) to 19-48 (dec)
Expand All @@ -1209,7 +1208,7 @@ jobs:
- name: Check request repository
run: |
tests/ca/bin/ca-request-next-range.sh primaryds | tee output
tests/ca/bin/ca-request-next-range-ssnv1.sh primaryds | tee output
cat > expected << EOF
nextRange: 51
Expand All @@ -1219,7 +1218,7 @@ jobs:
- name: Check cert repository
run: |
tests/ca/bin/ca-cert-next-range.sh primaryds | tee output
tests/ca/bin/ca-cert-next-range-ssnv1.sh primaryds | tee output
cat > expected << EOF
nextRange: 73
Expand Down Expand Up @@ -1398,7 +1397,7 @@ jobs:
- name: Check request range objects
run: |
tests/ca/bin/ca-request-range-objects.sh primaryds | tee output
tests/ca/bin/ca-request-range-objects-ssnv1.sh primaryds | tee output
cat > expected << EOF
SecurePort: 8443
Expand Down Expand Up @@ -1452,7 +1451,7 @@ jobs:
- name: Check cert range objects
run: |
tests/ca/bin/ca-cert-range-objects.sh primaryds | tee output
tests/ca/bin/ca-cert-range-objects-ssnv1.sh primaryds | tee output
cat > expected << EOF
SecurePort: 8443
Expand Down Expand Up @@ -1486,7 +1485,7 @@ jobs:
- name: Check request repository
run: |
tests/ca/bin/ca-request-next-range.sh primaryds | tee output
tests/ca/bin/ca-request-next-range-ssnv1.sh primaryds | tee output
cat > expected << EOF
nextRange: 101
Expand All @@ -1496,7 +1495,7 @@ jobs:
- name: Check cert repository
run: |
tests/ca/bin/ca-cert-next-range.sh primaryds | tee output
tests/ca/bin/ca-cert-next-range-ssnv1.sh primaryds | tee output
cat > expected << EOF
nextRange: 127
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ca-clone-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
needs: build
uses: ./.github/workflows/ca-clone-replicated-ds-test.yml

ca-clone-sequential-test:
name: CA clone with Sequential Serial Numbers
ca-clone-ssnv1-test:
name: CA clone with SSNv1
needs: build
uses: ./.github/workflows/ca-clone-sequential-test.yml
uses: ./.github/workflows/ca-clone-ssnv1-test.yml
Loading

0 comments on commit 6ae10a5

Please sign in to comment.