Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Add basic dev guide about how to run tests #39

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Contributing

## Dev Guide

### Running test
* Unit tests: `make test-unit` (see [Makefile](/Makefile))
* Integration tests: `make test-cluster` (see [Makefile](/Makefile))
* Pre-requisite: A locally running k8s cluster accessible via `kubectl`.
You can use [Minikube](https://kubernetes.io/docs/setup/learning-environment/minikube/) (with the command `minikube start`)
or [kind](https://kind.sigs.k8s.io/) to start a local cluster.
* Other tests: End-to-end tests for QuarksSecret examples
* [These tests](/e2e/kube) are still incomplete and under development. They use helm to install `QuarksSecret`
onto a running k8s cluster and apply the QuarksSecret examples included in the [/docs/examples](/docs/examples) directory.
* Pre-requisites:
* A locally running k8s cluster accessible via `kubectl` (same as the integration tests).
* Edit the values in the [helm chart values file](/deploy/helm/quarks-secret/values.yaml)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be needed, we have the bin/test-helm-e2e helper which should be taking care of this

to specify a `QuarksSecret` image.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ A QuarksSecret allows the developers to deal with the management of credentials.
* Slack: #quarks-dev on <https://slack.cloudfoundry.org>
* Backlog: [Pivotal Tracker](https://www.pivotaltracker.com/n/projects/2192232)
* Docker: https://hub.docker.com/r/cfcontainerization/cf-operator/tags
* Dev Guide: [CONTRIBUTING.md](/CONTRIBUTING.md)
* Documentation: [quarks.suse.dev](https://quarks.suse.dev)