accessControl completeBackup

Workflow Validation in Multi-Step Migration

Scénario de test & Cas d'usage

Business Context

During a system migration, the IT Operations team automates the backup of user permissions. Although the action does not process large data volumes itself, this test simulates a workflow where 'completeBackup' is triggered immediately after a heavy metadata operation to ensure the command responds correctly and finalizes the sequence without hanging the session.
About the Set : accessControl

Management of access rights and data security.

Discover all actions of accessControl
Data Preparation

Ensure Superuser privileges are active.

Copied!
1 
2PROC CAS;
3 
4ACCESSCONTROL.assumeRole / adminRole='superuser';
5 
6 
7RUN;
8 

Étapes de réalisation

1
Start transaction and simulate a backup creation.
Copied!
1PROC CAS;
2 ACCESSCONTROL.startTransaction RESULT=transEnv;
3 ACCESSCONTROL.createBackup / caslib='casuser' name='Migration_Snapshot_V2' transactionId=transEnv.transId;
4 RUN;
2
Call completeBackup immediately to validate response time and logic.
Copied!
1PROC CAS;
2 ACCESSCONTROL.completeBackup;
3 RUN;
3
Commit the transaction to finalize.
Copied!
1 
2PROC CAS;
3 
4ACCESSCONTROL.commitTransaction / transactionId=transEnv.transId;
5 
6 
7RUN;
8 

Expected Result


The completeBackup action returns immediately with no parameters required. The logs confirm the backup state is finalized, allowing the subsequent commit action to succeed.