# Functions
GetBooks reaches out to the bookstore and buys/steals books.
GetExpectedResponseCodeFromEnvVar returns the expected response code based on the given environment variable.
GetRawGenerator returns a function that can be used to write a response of book data.
GetTracingHeaderKeys returns header keys used for distributed tracing with Jaeger.
GetTracingHeaders gets the tracing related header values from a request.
RestockBooks restocks the bookstore with certain amount of books from the warehouse.
# Constants
BooksBoughtHeader is the header returned by the bookstore and observed by the bookbuyer.
BookstoreNamespaceEnvVar is the environment variable for the Bookbuyer namespace.
BookthiefExpectedResponseCodeEnvVar is the environment variable for Bookthief's expected HTTP response code.
BookwarehouseNamespaceEnvVar is the environment variable for the Bookwarehouse namespace.
EnableEgressEnvVar is the environment variable to enable egress requests in the demo.
Failure is the string constant emitted at the end of the Bookbuyer/Bookthief logs when the test failed.
IdentityHeader is the header returned by the bookstore and observed by the bookbuyer.
RestockWarehouseURL is a header string constant.
Success is the string constant emitted at the end of the Bookbuyer/Bookthief logs when the test succeeded.
# Structs
BookBuyerPurchases is all of the books that the bookbuyer has bought.
BookStorePurchases are all of the books sold from the bookstore.
BookThiefThievery is all of the books the bookthief has stolen.