Skip to content

Latest commit

 

History

History
 
 

constellation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Reproducing Conformance Test Results

Prerequisites

Follow the docs on how to set up cloud credentials for GCP

Install kubectl for working with Kubernetes

Additionally, Sonobuoy CLI is required. These tests results were produced using Sonobuoy v0.56.17

Download the Constellation CLI v2.9.1:

curl -fsSLO https://github.com/edgelesssys/constellation/releases/download/v2.9.1/constellation-linux-amd64
mv constellation-linux-amd64 constellation
chmod +x constellation-linux-amd64

Start a Constellation cluster

Create a config file

./constellation config generate gcp --kubernetes=1.27

Create IAM resources

./constellation iam create gcp \
    --projectID=XXXXXXXXXXXXXX \
    --serviceAccountID=conform \
    --zone=europe-west3-b \
    --update-config \
    -y

Provision Constellation Cluster

./constellation create -c3 -w2 -y
./constellation init --conformance
export KUBECONFIG="$PWD/constellation-admin.conf"

Run Conformance Tests

# Runs for ~2 hours.
sonobuoy run --mode certified-conformance
# Once status shows tests have completed...
sonobuoy status
# ... download & display results.
outfile=$(sonobuoy retrieve)
sonobuoy results $outfile

Fetch Test Log & Report

The provided e2e.log & junit_01.xml were fetched like this:

tar -xvf $outfile
cat plugins/e2e/results/global/e2e.log
cat plugins/e2e/results/global/junit_01.xml

Cleanup

# Remove test deployments
sonobuoy delete --wait
# Or, shutdown cluster
./constellation terminate
rm constellation-mastersecret.base64