US03: CreateEdgeType
8 Scenarios
User Story
Scenario: Create edge type with valid source and target node types
Given database contains node types with IDs NodeTypeA and NodeTypeB
When I send a POST request to /api/edgetypes with sourceId=NodeTypeA, targetId=NodeTypeB
#UAC01
Then the response status should be 201 Created
#UAC02
And the response should contain the created edge type
#UAC03
And the edge type should have an auto-generated ID
#UAC04
And the edge type should be persisted to the database
Scenarios
SC01: Create edge type with valid source and target node types
1 testsUAC: 01, 02, 03, 04
SC02: Create edge type with non-existent source node type
1 testsUAC: 05, 06
SC03: Create edge type with non-existent target node type
1 testsUAC: 07, 08
SC04: Create edge type with empty source node type ID
1 testsUAC: 09
SC05: Create edge type with empty target node type ID
1 testsUAC: 10
SC06: Create edge type with all optional properties
1 testsUAC: 11, 12
SC07: Create edge type with custom ID
1 testsUAC: 13, 14
SC08: Create edge type with default values
1 testsUAC: 15, 16, 17