Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify emoji #14

Merged
merged 3 commits into from
Apr 27, 2020
Merged
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
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Licence](https://img.shields.io/badge/licence-Apache%202.0-green)]()
[![Helm](https://img.shields.io/badge/plugin-helm--unit--0.1.3-brightgreen)]()
[![Helm](https://img.shields.io/badge/plugin-helm--unit--0.1.4-brightgreen)]()
[![Python](https://img.shields.io/badge/python-v3.7-green)]()

# helm-unit
Expand Down Expand Up @@ -36,7 +36,7 @@ $ helm plugin install https://github.com/HamzaZo/helm-unit
Install a specific version:

```shell
$ helm plugin install https://github.com/HamzaZo/helm-unit --version 0.1.2
$ helm plugin install https://github.com/HamzaZo/helm-unit --version 0.1.4
```

You can also verify it's been installed using:
Expand Down Expand Up @@ -188,52 +188,52 @@ Run test

```shell
$ helm unit --chart example/sample-front --tests example/unit-test
✔️ Detecting Helm 3 : PASS 🎯
Detecting Helm 3 : PASS

✔️ Validating chart syntax..
Validating chart syntax..

==> Linting example/sample-front
PASS 🎯
PASS

---> Applying test-service.yaml file..
---> Applying test-service.yaml file..

==> Running Tests on sample-front-svc Service ..

✔️ check if service listen on the right port : PASS 🎯
check if service listen on the right port : PASS

✔️ ensure that service forward traffic to the right pod port : PASS 🎯
ensure that service forward traffic to the right pod port : PASS

✔️ verify that service is using these labels as selector app.kubernetes.io/name: sample-front: PASS 🎯
verify that service is using these labels as selector app.kubernetes.io/name: sample-front: PASS

✔️ verify that service is using these labels as selector app.kubernetes.io/instance: tmp: PASS 🎯
verify that service is using these labels as selector app.kubernetes.io/instance: tmp: PASS

✔️ check if service is not exposed outside of the cluster : PASS 🎯
check if service is not exposed outside of the cluster : PASS

---> Applying test-ingress.yaml file..
---> Applying test-ingress.yaml file..

==> Running Tests on sample-front-ing Ingress ..

✔️ affirm that /api uri is exposed by ingress : PASS 🎯
affirm that /api uri is exposed by ingress : PASS

✔️ check that metadata labels are set and not empty : PASS 🎯
check that metadata labels are set and not empty : PASS

---> Applying test-deployment.yaml file..
---> Applying test-deployment.yaml file..

==> Running Tests on sample-front Deployment ..

✔️ check if we use the right number of replicas : PASS 🎯
check if we use the right number of replicas : PASS

️ check that container image does not using latest as tag : PASS 🎯
️ check that container image does not using latest as tag : PASS

validate that serviceAccount Name exist : FAILED
X validate that serviceAccount Name exist : FAILED

✔️ validate container port value : PASS 🎯
validate container port value : PASS

ensure that cpu/memory resources were set : FAILED
X ensure that cpu/memory resources were set : FAILED

✔️ check that deployment metadata do not contains this labels : PASS 🎯
️√ check that deployment metadata do not contains this labels : PASS

✔️ ensure that deployment does not have security context : PASS 🎯
ensure that deployment does not have security context : PASS

==> Unit Tests Summary:

Expand All @@ -253,7 +253,7 @@ Number of success tests : 5
Number of failed tests : 2


🕸 Happy Helming testing day! 🕸
+-------------------------+ Happy Helming testing day! +-------------------------+

```

Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "unit"
version: "0.1.3"
version: "0.1.4"
usage: "Run unit test on helm chart templates"
description: |-
Run unit-test on a chart locally without deploying the release.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="unit",
version="0.1.3",
version="0.1.4",
description="Helm unit plugin",
executables=[Executable("src/helm-unit.py")]
)
)
Loading