The following end-to-end (E2E) tests cover Kyma Environment Broker (KEB) and SAP BTP, Kyma runtime:
skr-tests
for testing the following operations on different cloud service providers: Kyma provisioning, BTP Manager Secret reconciliation, updating OIDC, updating machine type, and Kyma runtime deprovisioningkeb-endpoints-test
for checking ifkyma-environment-broker
endpoints require authorizationskr-aws-networking
for checking if provisioning a Kyma runtime with custom networking parameters works as expectedskr-trial-suspension-dev
for testing the following operations: Kyma provisioning, Kyma suspension, and Kyma runtime deprovisioningskr-aws-binding
for testing the following operations: Kyma provisioning, fetching Kyma Binding, using Kyma Binding, deleting Kyma Binding, and Kyma runtime deprovisioningprovisioning-service-aws-stage
for checking if Cloud Management Service Provisioning API works as expected
You can use the SKR test in two modes - with or without provisioning.
In this mode, the test executes the following steps:
- Provisions a Kyma runtime cluster.
- Runs the BTP Manager Secret reconciliation test.
- Runs the OIDC test.
- Runs the machine type update test.
- Deprovisions the Kyma runtime instance and cleans up the resources.
In this mode the test additionally needs the following environment variables:
- SKIP_PROVISIONING set to
true
- INSTANCE_ID - the UUID of the provisioned Kyma runtime instance
In this mode, the test executes the following steps:
- Ensures the Kyma runtime exists.
- Runs the OIDC test.
- Cleans up the resources.
-
Before you run the test, prepare the
.env
file based on this.env.template
. -
To set up the environment variables in your system, run:
export $(xargs < .env)
-
Choose whether you want to run the test with or without provisioning.
-
To run the test with provisioning, call the following target:
make skr
-
To run the SKR test without provisioning, use the following command:
make skr SKIP_PROVISIONING=true
-
The test executes the following steps:
- Calls KEB endpoints without an authorization token.
- Checks whether the call was rejected.
-
Before you run the test, prepare the
.env
file based on this.env.template
. -
To set up the environment variables in your system, run:
export $(xargs < .env)
-
Run the test scenario.
make keb-endpoints
The test executes the following steps:
- Calls KEB endpoints with invalid networking parameters.
- Checks whether the call was rejected.
- Provisions a cluster with custom networking parameters.
- Deprovisions the cluster.
-
Before you run the test, prepare the
.env
file based on this.env.template
. -
To set up the environment variables in your system, run:
export $(xargs < .env)
-
Run the test scenario:
make skr-networking
The test executes the following steps:
- Provisions a Kyma runtime cluster.
- Waits until Trial Cleanup CronJob triggers suspension.
- Waits until suspension succeeds.
- Deprovisions the Kyma runtime instance and cleans up the resources.
-
Before you run the test, prepare the
.env
file based on this.env.template
. -
To set up the environment variables in your system, run:
export $(xargs < .env)
-
Run the test scenario:
make skr-trial-suspension
The test executes the following steps:
- Provisions a Kyma runtime cluster.
- Creates a Kyma Binding and saves the returned kubeconfig.
- Initializes a Kubernetes client with the returned kubeconfig.
- Fetches the
sap-btp-manager
Secret using the Kyma Binding. - Fetches the created Kyma Binding.
- Deletes the created Kyma Binding.
- Tries to fetch the
sap-btp-manager
Secret using the deleted Kyma Binding. - Tries to create a Kyma Binding using invalid parameters.
- Tests response status codes.
- Tries to create more than 10 Kyma Bindings.
- Deprovisions the Kyma runtime instance and cleans up the resources.
-
Before you run the test, prepare the
.env
file based on this.env.template
. -
To set up the environment variables in your system, run:
export $(xargs < .env)
-
Run the test scenario:
make skr-binding
The test executes the following steps:
- Sends a call to Provisioning API to deprovision the remaining Kyma runtime and waits until the environment is deleted if the previous test run was not able to deprovision Kyma runtime.
- Sends a call to Provisioning API to provision a Kyma runtime. The test waits until the environment is created.
- Creates a Kyma Binding.
- Fetches the
sap-btp-manager
Secret using the kubeconfig from the created Kyma Binding. - Fetches the created Kyma Biding.
- Deletes the created Kyma Binding.
- Tries to fetch the
sap-btp-manager
Secret using the invalidated kubeconfig. - Tries to fetch the deleted Kyma Binding.
- Sends a call to Provisioning API to deprovision the Kyma runtime. The test waits until the environment is deleted.
-
Before you run the test, prepare the
.env
file based on this.env.template
. -
To set up the environment variables in your system, run:
export $(xargs < .env)
-
Run the test scenario:
make provisioning-service
The tests are run daily.
keb-endpoints-test
- KEB endpoints testskr-aws-integration-dev
- SKR testskr-aws-binding
- Kyma Bindings testskr-aws-networking
- networking parameters testskr-azure-integration-dev
- SKR testskr-azure-lite-integration-dev
- SKR testskr-free-aws-integration-dev
- SKR testskr-preview-dev
- SKR testskr-sap-converged-cloud-integration-dev
- SKR testskr-trial-integration-dev
- SKR testskr-trial-suspension-dev
- SKR suspension testprovisioning-service-aws-stage
- Provisioning API test