tests

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

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Gateway integration tests

Gateway integration tests are a collection of the following tests:

  • Playground tests check if the playground is available through Gateway
  • Viewer tests check the correctness of the viewer mutation
  • Tenant Mapping Handler checks tenant separation
  • Compass Authentication checks different methods of access to Director via Gateway

Compass authentication test scenario

Director authentication test scenario consists of the following steps:

  • Get Compass's externally-issued client certificate, register the Integration System using the certificate, and request client credentials for the IntegrationSystem
  • Call Hydra for OAuth 2.0 access token with client_id and client_secret pair - https://github.com/kyma-incubator/examples/tree/main/ory-hydra/scenarios/client-credentials
  • Register an Application as the Integration System
  • Add example API Spec using issued OAuth2.0 Access token (as Integration System)
  • Try removing the Integration System
  • Remove Application using issued OAuth2.0 Access token (test if the token is still valid)
  • Remove IntegrationSystem as user (using Compass's externally-issued client certificate)
  • Test if token granted for Integration System is invalid
  • Test if Integration System cannot fetch token

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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