hipstershop

package
v0.0.0-...-6b10bcf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

Hipster shop demo integration test

This test runs the Hipster shop demo against one or three different namespaces or clusters.

It also runs gRPC client tests as Kubernetes jobs, to validate all deployed services against all participant namespaces or clusters.

The job is self-sufficient to validate the results, therefore the test suite just expects that all jobs complete successfully.

Client jobs

All clients are written within a unique container image. An environment variable, named CLIENT must be defined when running the job to determine the client code to execute.

The following sections contain the possible values for the CLIENT variable.

CartService
  • Add a few items to the cart
  • Get the cart
  • Cleans the cart
RecommendationService
  • Get list of recommendations
ProductCatalogService
  • List all products, then for each:
    • Get product by id (GetProduct)
    • Search by name (SearchProducts)
ShippingService
  • Call GetQuote
  • Call ShipOrder using static list of products
CurrencyService
  • Get supported currencies
  • Convert 1 USD to BRL
PaymentService
  • Calls Charge method using a sample credit card
EmailService
  • Calls Send Order Confirmation using sample data
CheckoutService
  • Calls Place Order
AdService
  • Get suggested advertises

Documentation

Index

Constants

View Source
const (
	RESOURCES_PRV1 = "https://raw.githubusercontent.com/skupperproject/skupper-example-grpc/master/deployment-ms-a.yaml"
	RESOURCES_PUB1 = "https://raw.githubusercontent.com/skupperproject/skupper-example-grpc/master/deployment-ms-b.yaml"
	RESOURCES_PUB2 = "https://raw.githubusercontent.com/skupperproject/skupper-example-grpc/master/deployment-ms-c.yaml"
)

Variables

This section is empty.

Functions

func CreateVAN

func CreateVAN(t *testing.T, testRunner base.ClusterTestRunner)

func DeployResources

func DeployResources(t *testing.T, testRunner base.ClusterTestRunner)

func ExposeResources

func ExposeResources(t *testing.T, testRunner base.ClusterTestRunner)

func Setup

func Setup(t *testing.T, testRunner base.ClusterTestRunner)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL