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

add validate method in vault service #392

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

randmonkey
Copy link
Contributor

Add Validate() method to call /schemas/vaults/validate to validate vaults.

@randmonkey randmonkey requested a review from a team as a code owner December 28, 2023 10:08
@randmonkey randmonkey requested a review from a team December 28, 2023 10:08
kong/vault_service.go Outdated Show resolved Hide resolved
kong/vault_service.go Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2024

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (abc671e) 53.16% compared to head (4c5f4ab) 53.02%.

Files Patch % Lines
kong/vault_service.go 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #392      +/-   ##
==========================================
- Coverage   53.16%   53.02%   -0.15%     
==========================================
  Files          69       69              
  Lines        5212     5226      +14     
==========================================
  Hits         2771     2771              
- Misses       1857     1871      +14     
  Partials      584      584              
Flag Coverage Δ
2.1 33.06% <0.00%> (-0.09%) ⬇️
2.2 44.48% <0.00%> (-0.12%) ⬇️
2.3 45.19% <0.00%> (-0.13%) ⬇️
2.4 45.27% <0.00%> (-0.13%) ⬇️
2.5 45.27% <0.00%> (-0.13%) ⬇️
2.6 45.27% <0.00%> (-0.13%) ⬇️
2.7 46.76% <0.00%> (-0.13%) ⬇️
2.8 46.76% <0.00%> (-0.13%) ⬇️
3.0 50.47% <0.00%> (-0.14%) ⬇️
3.1 51.93% <0.00%> (-0.14%) ⬇️
3.2 51.99% <0.00%> (-0.14%) ⬇️
3.3 51.99% <0.00%> (-0.14%) ⬇️
3.4 52.31% <0.00%> (-0.15%) ⬇️
community 38.27% <0.00%> (-0.11%) ⬇️
enterprise 51.70% <0.00%> (-0.14%) ⬇️
enterprise-nightly 50.66% <0.00%> (-0.14%) ⬇️
integration 53.02% <0.00%> (-0.15%) ⬇️
nightly 37.56% <0.00%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@randmonkey randmonkey merged commit 896a8a3 into main Jan 3, 2024
67 checks passed
@randmonkey randmonkey deleted the feat/add_validate_in_vault_service branch January 3, 2024 09:13
Comment on lines +161 to +162
// returns validate result (passed/failed) and the message from the schema validation service if validation fails.
// returns a non-nil error if failed to call the schema validation service.
Copy link
Member

Choose a reason for hiding this comment

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

returns -> Returns

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

Successfully merging this pull request may close these issues.

4 participants