Scénario de test & Cas d'usage
The s3.addRegion action is a server-side administrative action for configuring S3 connectivity. It does not operate on CAS tables, so no data loading is required.
| 1 | /* No |
| 2 | data creation is necessary for this action. */ |
| 1 | PROC CAS; |
| 2 | S3.addRegion / |
| 3 | name='conflict-test' |
| 4 | host='s3.test-endpoint.com' |
| 5 | region='us-west-1' |
| 6 | nossl=true |
| 7 | sslrequired=true; |
| 8 | RUN; |
| 1 | PROC CAS; |
| 2 | S3.addRegion / |
| 3 | name='no-host-test' |
| 4 | region='us-west-1'; |
| 5 | RUN; |
Step 1 should ideally result in an ERROR or a clear WARNING in the SAS log, stating that the SSL parameters are in conflict. If the action succeeds, the configuration of 'conflict-test' in `s3.listRegions` would reveal which parameter took precedence. Step 2 must fail with an ERROR in the log indicating that the 'host' parameter is required and was not provided.