@@ -48,7 +48,7 @@ test_divider
48
48
49
49
echo " Request approved certificate must be empty"
50
50
result=$( dcld query pki x509-cert --subject=" $root_cert_subject " --subject-key-id=" $root_cert_subject_key_id " )
51
- check_response " $result " " null "
51
+ check_response " $result " " Not Found "
52
52
response_does_not_contain " $result " " \" subject\" : \" $root_cert_subject \" "
53
53
response_does_not_contain " $result " " \" subject_key_id\" : \" $root_cert_subject_key_id \" "
54
54
response_does_not_contain " $result " " \" serial_number\" : \" $root_cert_serial_number \" "
@@ -66,7 +66,7 @@ test_divider
66
66
67
67
echo " Request proposed Root certificate must be empty"
68
68
result=$( dcld query pki proposed-x509-root-cert --subject=" $root_cert_subject " --subject-key-id=" $root_cert_subject_key_id " )
69
- check_response " $result " " null "
69
+ check_response " $result " " Not Found "
70
70
response_does_not_contain " $result " " \" subject\" : \" $root_cert_subject \" "
71
71
response_does_not_contain " $result " " \" subject_key_id\" : \" $root_cert_subject_key_id \" "
72
72
response_does_not_contain " $result " " \" serial_number\" : \" $root_cert_serial_number \" "
@@ -85,7 +85,7 @@ test_divider
85
85
86
86
echo " Request revoked certificate must be empty"
87
87
result=$( dcld query pki revoked-x509-cert --subject=" $root_cert_subject " --subject-key-id=" $root_cert_subject_key_id " )
88
- check_response " $result " " null "
88
+ check_response " $result " " Not Found "
89
89
response_does_not_contain " $result " " \" subject\" : \" $root_cert_subject \" "
90
90
response_does_not_contain " $result " " \" subject_key_id\" : \" $root_cert_subject_key_id \" "
91
91
echo " $result "
@@ -100,7 +100,7 @@ echo "$result"
100
100
101
101
echo " Request all certificates by subject must be empty"
102
102
result=$( dcld query pki all-subject-x509-certs --subject=" $root_cert_subject " )
103
- check_response " $result " " null "
103
+ check_response " $result " " Not Found "
104
104
response_does_not_contain " $result " " \" $root_cert_subject \" "
105
105
response_does_not_contain " $result " " \" $root_cert_subject_key_id \" "
106
106
echo " $result "
@@ -127,7 +127,7 @@ test_divider
127
127
128
128
echo " Request root certificate proposed to revoke must be empty"
129
129
result=$( dcld query pki proposed-x509-root-cert-to-revoke --subject=" $root_cert_subject " --subject-key-id=" $root_cert_subject_key_id " )
130
- check_response " $result " " null "
130
+ check_response " $result " " Not Found "
131
131
response_does_not_contain " $result " " \" $root_cert_subject \" "
132
132
response_does_not_contain " $result " " \" $root_cert_subject_key_id \" "
133
133
echo " $result "
@@ -145,7 +145,7 @@ test_divider
145
145
146
146
echo " Request all child certificates must be empty"
147
147
result=$( dcld query pki all-child-x509-certs --subject=" $root_cert_subject " --subject-key-id=" $root_cert_subject_key_id " )
148
- check_response " $result " " null "
148
+ check_response " $result " " Not Found "
149
149
response_does_not_contain " $result " " \" $root_cert_subject \" "
150
150
response_does_not_contain " $result " " \" $root_cert_subject_key_id \" "
151
151
echo " $result "
@@ -195,7 +195,7 @@ test_divider
195
195
196
196
echo " Approved certificate must be empty"
197
197
result=$( dcld query pki x509-cert --subject=" $root_cert_subject " --subject-key-id=" $root_cert_subject_key_id " )
198
- check_response " $result " " null "
198
+ check_response " $result " " Not Found "
199
199
response_does_not_contain " $result " " \" subject\" : \" $root_cert_subject \" "
200
200
response_does_not_contain " $result " " \" subject_key_id\" : \" $root_cert_subject_key_id \" "
201
201
response_does_not_contain " $result " " \" serial_number\" : \" $root_cert_serial_number \" "
@@ -547,7 +547,7 @@ test_divider
547
547
548
548
echo " Request all child certificates for leaf"
549
549
result=$( dcld query pki all-child-x509-certs --subject=" $leaf_cert_subject " --subject-key-id=" $leaf_cert_subject_key_id " )
550
- check_response " $result " " null "
550
+ check_response " $result " " Not Found "
551
551
response_does_not_contain " $result " " \" subject\" : \" $root_cert_subject \" "
552
552
response_does_not_contain " $result " " \" subject_key_id\" : \" $root_cert_subject_key_id \" "
553
553
response_does_not_contain " $result " " \" subject\" : \" $intermediate_cert_subject \" "
@@ -675,7 +675,7 @@ test_divider
675
675
676
676
echo " Approved Intermediate certificate must be empty"
677
677
result=$( dcld query pki x509-cert --subject=" $intermediate_cert_subject " --subject-key-id=" $intermediate_cert_subject_key_id " )
678
- check_response " $result " " null "
678
+ check_response " $result " " Not Found "
679
679
response_does_not_contain " $result " " \" subject\" : \" $intermediate_cert_subject \" "
680
680
response_does_not_contain " $result " " \" subject_key_id\" : \" $intermediate_cert_subject_key_id \" "
681
681
response_does_not_contain " $result " " \" serial_number\" : \" $intermediate_cert_serial_number \" "
@@ -685,7 +685,7 @@ test_divider
685
685
686
686
echo " Approved Leaf certificate must be empty"
687
687
result=$( dcld query pki x509-cert --subject=" $leaf_cert_subject " --subject-key-id=" $leaf_cert_subject_key_id " )
688
- check_response " $result " " null "
688
+ check_response " $result " " Not Found "
689
689
response_does_not_contain " $result " " \" subject\" : \" $leaf_cert_subject \" "
690
690
response_does_not_contain " $result " " \" subject_key_id\" : \" $leaf_cert_subject_key_id \" "
691
691
response_does_not_contain " $result " " \" serial_number\" : \" $leaf_cert_serial_number \" "
@@ -878,7 +878,7 @@ test_divider
878
878
879
879
echo " Approved Intermediate certificate must be empty"
880
880
result=$( dcld query pki x509-cert --subject=" $intermediate_cert_subject " --subject-key-id=" $intermediate_cert_subject_key_id " )
881
- check_response " $result " " null "
881
+ check_response " $result " " Not Found "
882
882
response_does_not_contain " $result " " \" subject\" : \" $intermediate_cert_subject \" "
883
883
response_does_not_contain " $result " " \" subject_key_id\" : \" $intermediate_cert_subject_key_id \" "
884
884
response_does_not_contain " $result " " \" serial_number\" : \" $intermediate_cert_serial_number \" "
@@ -888,7 +888,7 @@ test_divider
888
888
889
889
echo " Approved Leaf certificate must be empty"
890
890
result=$( dcld query pki x509-cert --subject=" $leaf_cert_subject " --subject-key-id=" $leaf_cert_subject_key_id " )
891
- check_response " $result " " null "
891
+ check_response " $result " " Not Found "
892
892
response_does_not_contain " $result " " \" subject\" : \" $leaf_cert_subject \" "
893
893
response_does_not_contain " $result " " \" subject_key_id\" : \" $leaf_cert_subject_key_id \" "
894
894
response_does_not_contain " $result " " \" serial_number\" : \" $leaf_cert_serial_number \" "
@@ -898,7 +898,7 @@ test_divider
898
898
899
899
echo " Approved Root certificate must be empty"
900
900
result=$( dcld query pki x509-cert --subject=" $root_cert_subject " --subject-key-id=" $root_cert_subject_key_id " )
901
- check_response " $result " " null "
901
+ check_response " $result " " Not Found "
902
902
response_does_not_contain " $result " " \" subject\" : \" $root_cert_subject \" "
903
903
response_does_not_contain " $result " " \" subject_key_id\" : \" $root_cert_subject_key_id \" "
904
904
response_does_not_contain " $result " " \" serial_number\" : \" $root_cert_serial_number \" "
0 commit comments