Test PROD

Before testing in PROD, the UAT checklist must be approved by PagoPA.

If you haven't get them yet, proceed with the certificate and API key.

1. Mutual Authentication certificate validity check PROD

The first step checks the validity of the client certificate, with a call to a dedicated endpoint using your certificate and your private key.

From the cstar-cli project root run the script with the following command:

sh ./integration_check/scripts/006-mAuth-check-PROD/script.sh /PATH/TO/COMPANY_NAME_PROD.certificate.pem /PATH/TO/COMPANY_NAME_PROD.key

Note that you have to specify the path to your certificate and to the private key as arguments.

The script will print on screen the result, the correct value is 200 .

Example of expected result:

--<TIMESTAMP>--  https://api.cstar.pagopa.it/rtd/mauth/check
Resolving api.uat.cstar.pagopa.it (api.cstar.pagopa.it)... 20.101.29.138
Connecting to api.uat.cstar.pagopa.it (api.cstar.pagopa.it)|20.101.29.138|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24 [application/json]
Saving to: ‘STDOUT’
-
  "result": "PASS"
-

2. API Key validity check PROD

The second step checks the validity of the API Key, with a cll to a dedicated endpoint using your certificate, your private key and the PROD API Key.

From the cstar-cli project root run the script with the following command:

sh ./integration_check/scripts/007-API-key-check-PROD/script.sh /PATH/TO/COMPANY_NAME_PROD.certificate.pem /PATH/TO/COMPANY_NAME_PROD.key PROD_API_KEY

Note that you have to specify the path to your certificate, the path to the private key and the API key as arguments.

The script will print on screen the result, the correct value is 200 .

Example of expected result:

--<TIMESTAMP>--  https://api.cstar.pagopa.it/rtd/api-key/check
Resolving api.uat.cstar.pagopa.it (api.cstar.pagopa.it)... 20.101.29.138
Connecting to api.uat.cstar.pagopa.it (api.cstar.pagopa.it)|20.101.29.138|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24 [application/json]
Saving to: ‘STDOUT’
-
  "result": "PASS"
-

3. Stop the Batch Service execution

4. Configure PROD environment variables

Configure the environment variables using PROD check preset, according to your running artefact (JAR or Dockerimage). This configuration allows to run the Batch Service without sending any data to PagoPA, this way you can test the performance of the software in your environment with production data.

5. Restart the Batch Service execution

6. Upload transactions file in input directory

It is preferable to use real data in this step to test Batch Service instance performance.

Last updated