Coder Social home page Coder Social logo

activemq-artemis-operator-test-suite's Introduction

activemq-artemis-operator-test-suite

The ActiveMQ Artemis Operator Test Suite.

Quick Start

Install Ginkgo, see https://onsi.github.io/ginkgo/

go install github.com/onsi/ginkgo/[email protected]

Set up a kubernetes cluster, see https://kind.sigs.k8s.io/docs/user/quick-start/

kind create cluster

Export KUBECONFIG, see https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/

export KUBECONFIG=$HOME/.kube/config

Clone activemq-artemis-operator, see https://github.com/artemiscloud/activemq-artemis-operator

git clone https://github.com/artemiscloud/activemq-artemis-operator.git

Use artemiscloud container images

Exexute the test suite using artemiscloud container images from quay.io and the local clone of the activemq-artemis-operator repository:

ginkgo -r -keepGoing test/smoke/basic/... -- \
        -broker-name activemq-artemis \
        -broker-image quay.io/artemiscloud/activemq-artemis-broker-kubernetes:dev.latest \
        -broker-image-second quay.io/artemiscloud/activemq-artemis-broker-kubernetes:dev.latest \
        -operator-image quay.io/artemiscloud/activemq-artemis-operator:dev.latest \
        -repository ../activemq-artemis-operator/deploy \
        -v2 -debug-run

Use local container images

The default operator image pull policy is Always, change it to use a local operator container image, see https://kubernetes.io/docs/concepts/containers/images/#updating-images

sed -i 's/imagePullPolicy:.*/imagePullPolicy: IfNotPresent/' ../activemq-artemis-operator/deploy/operator.yaml

Load local container images into the kubernetes cluster, see https://kind.sigs.k8s.io/docs/user/quick-start/#loading-an-image-into-your-cluster

kind load docker-image activemq-artemis-broker-kubernetes:dev.latest

Exexute the test suite using local container images and the local clone of activemq-artemis-operator repository

ginkgo -r -keepGoing test/smoke/basic/... -- \
        -broker-name activemq-artemis \
        -broker-image activemq-artemis-broker-kubernetes:dev.latest \
        -broker-image-second activemq-artemis-broker-kubernetes:dev.latest \
        -operator-image activemq-artemis-operator:dev.latest \
        -repository ../activemq-artemis-operator/deploy \
        -v2 -debug-run

Delete test suite namespaces

kubectl get namespaces | grep -o '^e2e[^ ]*' | while read NAMESPACE; do kubectl delete namespaces $NAMESPACE; done

Troubleshooting

Use the following command to investigate on kubernetes cluster failures:

  • kubectl get pods --all-namespaces
  • kubectl describe pod
  • kubectl logs

activemq-artemis-operator-test-suite's People

Contributors

brusdev avatar mkrutov avatar rvais avatar tlbueno avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

activemq-artemis-operator-test-suite's Issues

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.