For testing a tenant integration with the Fibre Cafe, the tenant can be setup on the CVT test environment - as multiple "tenants" if required. This environment supports a number of different mock supplier "stubs" that mimic different suppliers and support a variety of different test scenarios.
Where the supplier supports it, their test system can also be configured for testing directly with the supplier.
Supplier Stub Scenarios
By default, the supplier stubs allow for tenants to test the full end to end happy path of checking availability, appointing and placing an order through to completion, including any update KCIs. Using request headers, the simulation can be tailored to cover various scenarios.
Headers
X-Scenario
X-Problem-Code
(Default: UNKNOWN_FAULT)
X-Kci-Delay
(Default: 30) (seconds)
Scenarios available
Orders
ORDER_SUCCESSFUL
(DEFAULT)
ORDER_ACKNOWLEDGED
ORDER_CANCELLED
ORDER_DELAYED
ORDER_IN_PROGRESS
ORDER_PENDING
ORDER_REAPPOINT
ORDER_REJECTED
Cancellations
CANCELLATION_ACCEPTED
(DEFAULT)
CANCELLATION_REJECTED
CANCELLATION_PENDING
Amendments
AMENDMENT_ACCEPTED
(DEFAULT)
AMENDMENT_REJECTED
AMENDMENT_PENDING
How to use
When creating an Order, Cancellation or Amendment these scenarios can be used to change the outcome.
In order for these to be used X-Scenario can be set to any of the allowed values to trigger these behaviors.
If a scenario of ORDER_CANCELLED or ORDER_DELAYED is used the X-Problem-Code can also be set to any of the
available SI problem codes and that will be used in these scenarios.