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

Improve tests for ParseDevfileAndValidate #183

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

feloy
Copy link
Contributor

@feloy feloy commented Sep 21, 2023

What does this PR do?:

Adds coverage for Path, URL, RegistryURLs, DefaultNamespace, Context and K8sClient on tests for ParseDevfileAndValidate.

Which issue(s) this PR fixes:

devfile/api#1099

PR acceptance criteria:

Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened.

  • Open new test/doc issues under the devfile/api repo
  • Check each criteria if:
  • There is a separate tracking issue. Add the issue link under the criteria
    or
  • test/doc updates are made as part of this PR
  • If unchecked, explain why it's not needed

How to test changes / Special notes to the reviewer:

@feloy feloy force-pushed the tests-1099/test-ParseDevfileAndValidate branch from 858d63a to 194d6f7 Compare September 21, 2023 10:13
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (7c7d865) 60.84% compared to head (3d08664) 60.84%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #183   +/-   ##
=======================================
  Coverage   60.84%   60.84%           
=======================================
  Files          41       41           
  Lines        5006     5006           
=======================================
  Hits         3046     3046           
  Misses       1767     1767           
  Partials      193      193           

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

Signed-off-by: Philippe Martin <[email protected]>
@feloy feloy force-pushed the tests-1099/test-ParseDevfileAndValidate branch from 4d4e042 to 3d08664 Compare September 22, 2023 12:31
Copy link
Contributor

@thepetk thepetk left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Sep 25, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: feloy, rm3l, thepetk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@feloy feloy merged commit 393d29e into devfile:main Sep 25, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants