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

feat: convert chart tests from the custom bash script to be BATS unit tests #256

Merged
merged 16 commits into from
Aug 8, 2023

Conversation

leninmehedy
Copy link
Member

@leninmehedy leninmehedy commented Aug 7, 2023

Description

This pull request changes the following:

  • enables BATS framework for helm chart tests
  • add custom docker image for helm testing (kubectl-bats)

Note

This PR is going to fail the unit tests since it requires a docker image that is included in this change.

Related Issues

@leninmehedy leninmehedy changed the title feat: enable BATS test framework for helm chart tests feat: convert chart tests from the custom bash script to be BATS unit tests Aug 7, 2023
@leninmehedy leninmehedy requested a review from nathanklick August 7, 2023 07:28
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Unit Test Results

16 files  ±0  16 suites  ±0   32s ⏱️ ±0s
85 tests ±0  82 ✔️ ±0  3 💤 ±0  0 ±0 
86 runs  ±0  83 ✔️ ±0  3 💤 ±0  0 ±0 

Results for commit b190fa3. ± Comparison against base commit 42be59a.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Merging #256 (b190fa3) into main (a5bfe5a) will not change coverage.
The diff coverage is n/a.

❗ Current head b190fa3 differs from pull request most recent head fd4cddd. Consider uploading reports for the commit fd4cddd to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #256   +/-   ##
=========================================
  Coverage     62.23%   62.23%           
  Complexity      254      254           
=========================================
  Files            47       47           
  Lines          1046     1046           
  Branches        130      130           
=========================================
  Hits            651      651           
  Misses          344      344           
  Partials         51       51           

Impacted file tree graph

@leninmehedy leninmehedy force-pushed the 214-suppport-bats-unit-tests branch from 9bbef46 to b190fa3 Compare August 7, 2023 21:45
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Base automatically changed from 218-add-support-for-multiple-test-files to main August 8, 2023 03:13
Signed-off-by: Lenin Mehedy <[email protected]>
Signed-off-by: Lenin Mehedy <[email protected]>

# Conflicts:
#	charts/hedera-network/config-files/test.sh
#	charts/hedera-network/templates/configmaps/test-cm.yaml
#	charts/hedera-network/templates/tests/test-deployment.yaml
#	charts/hedera-network/tests/helper.sh
#	charts/hedera-network/tests/test_basic_deployment.bats
Signed-off-by: Lenin Mehedy <[email protected]>
Signed-off-by: Lenin Mehedy <[email protected]>
Signed-off-by: Lenin Mehedy <[email protected]>
@leninmehedy leninmehedy marked this pull request as ready for review August 8, 2023 22:09
@nathanklick nathanklick merged commit 0bcdfcb into main Aug 8, 2023
@nathanklick nathanklick deleted the 214-suppport-bats-unit-tests branch August 8, 2023 22:53
swirlds-automation added a commit that referenced this pull request Aug 9, 2023
## [0.6.0](v0.5.0...v0.6.0) (2023-08-09)

### Features

* convert chart tests from the custom bash script to be BATS unit tests ([#256](#256)) ([0bcdfcb](0bcdfcb))
* update partial templates to match naming conventions and prefix with fullstack namespace ([#265](#265)) ([fb73b5d](fb73b5d))

### Bug Fixes

* correct KeyValuePair equals and add coverage for ServiceLocator ([#257](#257)) ([5b17978](5b17978))
* default tag is not set properly for proxy containers ([#266](#266)) ([deabd16](deabd16))
* enable overriding individual properties for sidecars ([#250](#250)) ([7d5a4e1](7d5a4e1))
* only allow jrs profile during node setup ([#249](#249)) ([dd326c1](dd326c1))
* typo in the semantic release config preventing the updates to Chart.yaml from being committed ([#252](#252)) ([02a576b](02a576b))
* update verification script so that CI pipeline fails if node fails to start ([#254](#254)) ([7f051c0](7f051c0))
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants