Skip to content

Commit

Permalink
fix(rss2twitter): fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
linoleparquet committed Sep 20, 2023
1 parent e87b2fc commit 138d406
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
suite: default tests
values:
- ../values.yaml
- secrets_default_values.yaml
suite: Test with custom values
templates:
- _helper.tpl
- deployment.yaml
- exclusion-patterns-configmap.yaml
- secret.yaml
tests:
- it: should define the default deployment with the image umputun/rss2twitter
template: deployment.yaml
asserts:
- hasDocuments:
count: 1
- isKind:
of: Deployment
- equal:
path: spec.template.spec.containers[0].image
value: umputun/rss2twitter:v0.7.0
- it: should create a Secret with the correct value
set:
twitter:
consumerKey: consumer-key
consumerSecret: consumer-secret
accessToken: access-token
accessSecret: access-secret
template: secret.yaml
asserts:
- hasDocuments:
Expand Down
17 changes: 17 additions & 0 deletions charts/rss2twitter/tests/defaults_values_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
suite: Test with default values
templates:
- _helper.tpl
- deployment.yaml
- exclusion-patterns-configmap.yaml
- secret.yaml
tests:
- it: should define the default deployment with the image umputun/rss2twitter
template: deployment.yaml
asserts:
- hasDocuments:
count: 1
- isKind:
of: Deployment
- equal:
path: spec.template.spec.containers[0].image
value: umputun/rss2twitter:v0.7.0
5 changes: 0 additions & 5 deletions charts/rss2twitter/tests/secrets_default_values.yaml

This file was deleted.

0 comments on commit 138d406

Please sign in to comment.