diff --git a/features/cards.feature b/features/cards.feature index 025ffd1..4001eec 100644 --- a/features/cards.feature +++ b/features/cards.feature @@ -36,7 +36,6 @@ Feature: Credit cards } """ - Scenario: Retrieve a card Given I have tokenized a card When I GET to /cards/:card_id giving the card_id @@ -580,6 +579,66 @@ Feature: Credit cards } """ + @failing + Scenario: CVV re-verification matches + When I PUT to /cards/:card_id giving the card_id, with the body: + """ + { + "cards": [{ + "cvv": "123" + }] + } + """ + + Then I should get a 200 OK status code + And the response is valid according to the "cards" schema + And the fields on this card match: + """ + { + "cvv_match": "yes" + } + """ + + @failing + Scenario: CVV re-verification does not match + When I PUT to /cards/:card_id giving the card_id, with the body: + """ + { + "cards": [{ + "cvv": "200" + }] + } + """ + + Then I should get a 200 OK status code + And the response is valid according to the "cards" schema + And the fields on this card match: + """ + { + "cvv_match": "no" + } + """ + + @failing + Scenario: CVV re-verification is unsupported + When I PUT to /cards/:card_id giving the card_id, with the body: + """ + { + "cards": [{ + "cvv": "901" + }] + } + """ + + Then I should get a 200 OK status code + And the response is valid according to the "cards" schema + And the fields on this card match: + """ + { + "cvv_match": "unsupported" + } + """ + Scenario: Adding card metadata Given I have tokenized a card When I make a PATCH request to the href "href" with the body: