Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Add multi flow tests for KB, kamelets and integrations #647

Merged
merged 1 commit into from
May 16, 2023

Conversation

tplevko
Copy link
Contributor

@tplevko tplevko commented May 10, 2023

Found the flow parsing was adding the '---' at the end of parsed yaml I think it might be cut off.

@Delawen please have a look.

@tplevko tplevko requested a review from a team May 10, 2023 11:22
@Delawen Delawen enabled auto-merge (rebase) May 10, 2023 11:30
@Delawen
Copy link
Collaborator

Delawen commented May 10, 2023

Good catch!

@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #647 (18559f7) into main (14f2cb1) will increase coverage by 0.73%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #647      +/-   ##
============================================
+ Coverage     77.70%   78.43%   +0.73%     
  Complexity      145      145              
============================================
  Files            47       47              
  Lines          2601     2606       +5     
  Branches        402      405       +3     
============================================
+ Hits           2021     2044      +23     
+ Misses          399      381      -18     
  Partials        181      181              
Impacted Files Coverage Δ
...elroute/IntegrationDeploymentGeneratorService.java 58.13% <100.00%> (+8.13%) ⬆️
...arser/camelroute/IntegrationStepParserService.java 85.71% <100.00%> (+12.54%) ⬆️
...elet/KameletBindingDeploymentGeneratorService.java 67.22% <100.00%> (ø)
...tor/kamelet/KameletDeploymentGeneratorService.java 68.75% <100.00%> (ø)

... and 2 files with indirect coverage changes

@Delawen
Copy link
Collaborator

Delawen commented May 11, 2023

Could be some issue with new lines in windows? Tests fail too much.

@tplevko tplevko force-pushed the add_parseFlows_test branch 7 times, most recently from 403fc6f to 51c5f43 Compare May 15, 2023 10:22
@tplevko tplevko changed the title Add DeploymentGeneratorService parsed flows test Draft: Add DeploymentGeneratorService parsed flows test May 15, 2023
@tplevko tplevko marked this pull request as draft May 15, 2023 10:22
auto-merge was automatically disabled May 15, 2023 10:22

Pull request was converted to draft

@tplevko tplevko changed the title Draft: Add DeploymentGeneratorService parsed flows test Draft: Add multi flow tests for KB, kamelets and integrations May 15, 2023
@tplevko
Copy link
Contributor Author

tplevko commented May 15, 2023

@Delawen I updated also the KameletBinding and Kamelets DeploymentGeneratorServices.

I'm still trying to bypass the windows issues, the isEqualToNormalizingNewlines doesn't seem to have helped, so trying other things too

@tplevko tplevko force-pushed the add_parseFlows_test branch from 51c5f43 to fd8363d Compare May 15, 2023 10:37
@tplevko tplevko force-pushed the add_parseFlows_test branch from fd8363d to 18559f7 Compare May 15, 2023 10:53
@sonarqubecloud
Copy link

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
0.0% 0.0% Duplication

@tplevko tplevko changed the title Draft: Add multi flow tests for KB, kamelets and integrations Add multi flow tests for KB, kamelets and integrations May 15, 2023
@tplevko tplevko marked this pull request as ready for review May 15, 2023 12:03
@tplevko
Copy link
Contributor Author

tplevko commented May 15, 2023

This should be ready for review - the native tests for windows-latest failure seems to be unrelated to this PR

@Delawen Delawen enabled auto-merge (rebase) May 16, 2023 07:31
@Delawen Delawen merged commit c93aff8 into kaoto-archive:main May 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants