Coder Social home page Coder Social logo

sarveshtamba / maistra-test-tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maistra/maistra-test-tool

0.0 0.0 0.0 2.01 MB

A Testing tool for running maistra tasks on OpenShift

License: Apache License 2.0

Shell 14.28% Go 85.36% Dockerfile 0.36%

maistra-test-tool's Introduction

Maistra OpenShift Test Tool

A testing tool for running Maistra tasks on AWS OpenShift 4.x cluster.

Introduction

This project aims to automate the running Maistra tasks on an AWS OpenShift 4.x Cluster.

The testing follows Istio Doc Tasks

Versions

Name Version
OS Linux
Golang 1.15+
Python 3.7+
python3-pip

The host machine which triggers test scripts must have Golang and Python installed before running go tests.

python3-pip is required for testing Security_authentication_end-user_JWT

Testing Prerequisite

  1. Maistra has been installed on an OpenShift OCP4 cluster.
  2. Several test cases require nginx or mongoDB running on OCP4 and we need to configure additional scc permission for them after login as a cluster admin user.
    $ oc login -u kubeadmin -p [token] --server=[OCP API server]
    
  3. Completed CLI login an OCP cluster as a regular user. Run oc login -u [user] -p [token] --server=[OCP API server] login command in a shell.
  4. For the test case using JWT token, the system needs python3 installed to be able to run the python script.

Testing

  • All test cases and testdata are in the tests directory.
  • The test cases include several changes for an OpenShift environment. Currently, those changes will not work in origin Kubernetes environments.
  • To run all the test cases: go test -timeout 3h -v. It is required to use the -timeout flag. Otherwise, the go test by default will fall into panic after 10 minutes.
  • In order to save results in a junit report, we can run a go test command with "github.com/jstemmer/go-junit-report", e.g.
    $ cd tests
    $ export GODEBUG=x509ignoreCN=0
    $ go get -u github.com/jstemmer/go-junit-report
    $ go test -timeout 3h -v 2>&1 | tee >(${GOPATH}/bin/go-junit-report > results.xml) test.log
    
  • All case numbers are mapped in the test_cases.go file. Users can run a single test with the -run [case number] flag, e.g. go test -run 17 -timeout 1h -v.
  • The testdata samples and samples_extend are pulling from Istio 1.9.5 and Istio 1.9 Doc.

License

Maistra OpenShift Test Tool is Apache 2.0 licensed

maistra-test-tool's People

Contributors

yxun avatar bartoszmajsak avatar dependabot[bot] avatar leoieggli avatar dgn avatar jwendell avatar tdaleibm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.