US07: ApiIntegration
13 Scenarios
User Story
Scenario: GET all rules for a property
Given rules exist for a property
When GET /api/rules?propertyId={id} is called
#UAC01
Then the response status should be 200 OK
#UAC02
And all rules for that property should be returned
#UAC03
And rules should be ordered by Order field
Scenarios
SC01: GET all rules for a property
1 testsUAC: 01, 02, 03
SC02: GET a specific rule by ID
1 testsUAC: 04, 05
SC03: GET a non-existent rule
1 testsUAC: 06
SC04: POST create a new rule
1 testsUAC: 07, 08, 09, 10
SC05: PUT update an existing rule
1 testsUAC: 11, 12, 13
SC06: PUT update a non-existent rule
1 testsUAC: 14
SC07: DELETE an existing rule
1 testsUAC: 15, 16
SC08: DELETE a non-existent rule
1 testsUAC: 17
SC09: GET child rules of a parent
1 testsUAC: 18, 19, 20
SC10: POST add a child rule to parent
1 testsUAC: 21, 22, 23
SC11: POST add child to non-existent parent
1 testsUAC: 24
SC12: GET rules filtered by scope
1 testsUAC: 25, 26
SC13: GET rules filtered by active status
1 testsUAC: 27, 28