forked from pierront/mylibrary-template
correction de bug et upgrade du BDD
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# language: en
|
||||
|
||||
|
||||
|
||||
Feature: Manage customer subscription
|
||||
Background:
|
||||
Given the system has the following customers:
|
||||
@@ -25,4 +27,27 @@ Feature: Manage customer subscription
|
||||
| customerId | duration | paymentMethod |
|
||||
| 33333333-3333-3333-3333-333333333333 | 0 | CB |
|
||||
Then the subsription duration creation fails
|
||||
And I receive an error for validation subscription message containing "Duration must be positive"
|
||||
And I receive an error for validation subscription message containing "Duration must be positive"
|
||||
|
||||
Scenario: Attempt to get a subscription
|
||||
Given I create a new subscription with CB:
|
||||
| customerId | duration | paymentMethod |
|
||||
| 11111111-1111-1111-1111-111111111111 | 12 | CB |
|
||||
When I try to get a subscription with the following customerId:
|
||||
| customerId |
|
||||
| 11111111-1111-1111-1111-111111111111 |
|
||||
Then I receive the following subscription:
|
||||
| subscriptionId | customerId | duration | paymentMethod | debutDate |
|
||||
| 99999999-9999-9999-9999-999999999999 | 11111111-1111-1111-1111-111111111111 | 12 | CB | 2025-06-11 |
|
||||
|
||||
Scenario: Attempt to find a unexisting subscription
|
||||
When I try to get a subscription with the following customerId:
|
||||
| customerId |
|
||||
| 11111111-1111-1111-1111-111111111111 |
|
||||
Then I receive an error for not found subscription
|
||||
|
||||
Scenario: Attempt to find a subscription with a non-existing customerId
|
||||
When I try to get a subscription with the following customerId:
|
||||
| customerId |
|
||||
| 44444444-4444-4444-4444-444444444444 |
|
||||
Then I receive an error for not found subscription
|
||||
Reference in New Issue
Block a user