Skip to content

Latest commit

 

History

History
61 lines (56 loc) · 2.73 KB

ContractTest.md

File metadata and controls

61 lines (56 loc) · 2.73 KB

Table of Contents

Contract

Tuns all standard requests and checks if they fail with 412 Precondition Failed, if the X-Broker-API-Version header is missing or does not match the given one.

Example Output

╷
└─ JUnit Jupiter ✔
   └─ ContractJUnit5 ✔
      └─ testHeaderForAPIVersion() ✔
         └─ Requests should contain header X-Broker-API-Version ✔
            ├─ GET - v2/catalog should reject with 412 ✔
            ├─ PUT - v2/service_instance/instance_id should reject with 412 ✔
            ├─ DELETE - v2/service_instance/instance_id should reject with 412 ✔
            ├─ GET - v2/service_instance/instance_id/last_operation should reject with 412 ✔
            ├─ DELETE - v2/service_instance/instance_id?service_id=Invalid&plan_id=Invalid  should reject with 412) ✔
            ├─ PUT - v2/service_instance/instance_id/service_binding/binding_id  should reject with 412) ✔
            └─ DELETE - v2/service_instance/instance_id/service_binding/binding_id?service_id=Invalid&plan_id=Invalid should reject with 412 ✔

Test run finished after 4246 ms
[         4 containers found      ]
[         0 containers skipped    ]
[         4 containers started    ]
[         0 containers aborted    ]
[         4 containers successful ]
[         0 containers failed     ]
[         7 tests found           ]
[         0 tests skipped         ]
[         7 tests started         ]
[         0 tests aborted         ]
[         7 tests successful      ]
[         0 tests failed          ]