Sends a POST request to create a new signing request. After creation, we need to send another request to start it.
(manifest: Any)
| 149 | |
| 150 | |
| 151 | def cd_signer_create_request(manifest: Any) -> str: |
| 152 | """ |
| 153 | Sends a POST request to create a new signing request. After creation, we |
| 154 | need to send another request to start it. |
| 155 | """ |
| 156 | response = cd_signer_request( |
| 157 | method="POST", |
| 158 | path="/signing_requests", |
| 159 | data=json.dumps({"manifest": manifest}), |
| 160 | ) |
| 161 | response_json = response.json() |
| 162 | info(f"Signing request create: {response_json}") |
| 163 | request_id = response_json["signingRequestId"] |
| 164 | return request_id |
| 165 | |
| 166 | |
| 167 | def cd_signer_start_request(request_id: str, source_key: str, destination_key: str, signing_data: CdSigningData): |
no test coverage detected