kubtest-executor-k8sjobs

module
v0.0.0-...-7d77b75 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT

README

██   ██ ██    ██ ██████  ████████ ███████ ███████ ████████ 
██  ██  ██    ██ ██   ██    ██    ██      ██         ██    
█████   ██    ██ ██████     ██    █████   ███████    ██    
██  ██  ██    ██ ██   ██    ██    ██           ██    ██    
██   ██  ██████  ██████     ██    ███████ ███████    ██    
                                 /kʌb tɛst/ by Kubeshop
                    EXCUTOR TEMPLATE

Welcome to Kubtest Template Executor

Kubetest Template Executor is test executor for Kubtest

Issues and enchancements

Please follow to main kubtest repository for reporting any issues or discussions

Implemention in 4 steps:

  1. Create new repo on top of this template

  2. Implement your own Runner on top of [runner interface](https://github.com/kubeshop/kubtest/blob/main/pkg/runner/interface.go

  3. Change Dockerfile - use base image of whatever test framework/library you want to use

  4. Register Executor Custom Resource in your cluster

apiVersion: executor.kubtest.io/v1
kind: Executor
metadata:
  name: example-executor
spec:
  uri: http://template-executor:8082
  types:
  - example/test

Architecture

Template executor implement work queue on top of API REST endpoints Work queue implemented on top of MongoDB. You can scale workers easily on many nodes.

Kubtest will pass particular test execution based on executor registered types (e.g. "postman/collection' or 'cypress/project')

executor/server package introduce 2 endpoints

  • first for pushing execution to queue and
  • second for getting execution details from queue

TODO add architecture diagrams

API

Template executor implements Kubtest OpenAPI for executors (look at executor tag)

Directories

Path Synopsis
cmd
pkg
k8s
newman
struct autogenerated from output file some fields could be missing example command newman run jw1.postman_collection.json --reporters cli,json --reporter-json-export outputfile.json
struct autogenerated from output file some fields could be missing example command newman run jw1.postman_collection.json --reporters cli,json --reporter-json-export outputfile.json

Jump to

Keyboard shortcuts

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