testhub

by Testhub

Helm chartv0.1.4App 1.16.0deprecated_AGPL-3.0Verified publisher

A Helm chart for Kubernetes

About this chart

testhub-helm

Helm chart repo for TestHub

Usage

Create a values.yaml file:

ingress:  
  frontend:
    annotations: 
      # kubernetes.io/ingress.class: nginx
      # kubernetes.io/tls-acme: "true"
    host: testhub-frontend.local    
  api:
    host: testhub-api.local    
    
volume:
  size: 1Gi

Add testhub helm repo and install chart

helm repo add testhub https://testhub-io.github.io/testhub-helm
helm repo update
helm install testhub testhub/testhub -n test-hub -f values.yaml

Configure tests upload

  • Install testhub-cli. Refer to https://github.com/testhub-io/testhub-cli for more info and most recent version.
 curl  https://github.com/testhub-io/testhub-cli/releases/download/v0.12e/testhub-cli-v0.12e-linux-386.tar.gz --output testhub-cli.tar.gz -L && tar -xzf testhub-cli.tar.gz
  • Initialize testhub environment variables
    export ON_PREMISE=true    
    export TESTHUB_DOMAIN=testhub-api.my-cluster.com

last one should point to backend

  • Run testhub-cli after test execution
 ./testhub-cli upload --build $BUILD_NUMBER --project test-project/project-x --pattern ./report.xml

after execution test will be available in testhub frontend under test-project

Deploy testhub with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has testhub on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttesthub is pinned at v0.1.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply