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

test/e2e/karmadactl_test.go: test get command #5190

Merged

Conversation

mohamedawnallah
Copy link
Contributor

@mohamedawnallah mohamedawnallah commented Jul 13, 2024

Description

In this commit, we test karmadactl get command on existing resource, non-existing resource, and invalid resource type.

What type of PR is this?

/kind failing-test

Which issue(s) this PR fixes:

Part of #4544

Does this PR introduce a user-facing change?:

NONE

@karmada-bot karmada-bot added the kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. label Jul 13, 2024
@karmada-bot
Copy link
Collaborator

Welcome @mohamedawnallah! It looks like this is your first PR to karmada-io/karmada 🎉

@karmada-bot karmada-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 13, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 13, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.25%. Comparing base (a5934ab) to head (d2a47dd).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5190      +/-   ##
==========================================
- Coverage   28.25%   28.25%   -0.01%     
==========================================
  Files         632      632              
  Lines       43723    43723              
==========================================
- Hits        12354    12352       -2     
- Misses      30467    30468       +1     
- Partials      902      903       +1     
Flag Coverage Δ
unittests 28.25% <ø> (-0.01%) ⬇️

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.

@mohamedawnallah mohamedawnallah force-pushed the testKarmadactlGetCommand branch 3 times, most recently from 2ec588d to ab5d4c5 Compare July 13, 2024 14:38
@karmada-bot karmada-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 13, 2024
@XiShanYongYe-Chang
Copy link
Member

/cc @zhzhuang-zju @Vacant2333

Copy link
Contributor

@zhzhuang-zju zhzhuang-zju left a comment

Choose a reason for hiding this comment

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

Only a few issues with using public constants/methods, others LGTM

test/e2e/karmadactl_test.go Outdated Show resolved Hide resolved
test/e2e/karmadactl_test.go Outdated Show resolved Hide resolved
test/e2e/karmadactl_test.go Outdated Show resolved Hide resolved
test/e2e/karmadactl_test.go Outdated Show resolved Hide resolved
test/e2e/karmadactl_test.go Outdated Show resolved Hide resolved
@mohamedawnallah mohamedawnallah force-pushed the testKarmadactlGetCommand branch 2 times, most recently from 05d7a89 to 27ef0e9 Compare July 15, 2024 05:08
@mohamedawnallah
Copy link
Contributor Author

/retest

@karmada-bot
Copy link
Collaborator

@mohamedawnallah: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@zhzhuang-zju
Copy link
Contributor

/retest

@mohamedawnallah
Copy link
Contributor Author

Hey @zhzhuang-zju, The test cases finished and all passed after addressing all the feedback :)

@zhzhuang-zju
Copy link
Contributor

/lgtm
cc @Vacant2333 @XiShanYongYe-Chang

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2024
@mohamedawnallah
Copy link
Contributor Author

Please ping me once when it is time for merge this so I rebase :)

Copy link
Member

@XiShanYongYe-Chang XiShanYongYe-Chang left a comment

Choose a reason for hiding this comment

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

/approve
Hi @mohamedawnallah, this pr also need to rebase the master branch.
It can wait until the #5192 has been merged.

Other influential PRs are in a similar situation.

@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: XiShanYongYe-Chang

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

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 17, 2024
@XiShanYongYe-Chang
Copy link
Member

/hold

@karmada-bot karmada-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 17, 2024
In this commit, we test `karmadactl get` command
on existing resource, non-existing resource, and
invalid resource type.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
@karmada-bot karmada-bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2024
@mohamedawnallah
Copy link
Contributor Author

Rebasing it now... Once the GitHub CI tests finish I will ask for review :)

@XiShanYongYe-Chang
Copy link
Member

Thanks
/hold cancel

@karmada-bot karmada-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 17, 2024
@XiShanYongYe-Chang
Copy link
Member

Hi @mohamedawnallah when you fix the comments, you can close it.

@mohamedawnallah
Copy link
Contributor Author

mohamedawnallah commented Jul 17, 2024

when you fix the comments, you can close it.

@XiShanYongYe-Chang which comments?

@mohamedawnallah
Copy link
Contributor Author

The CI tests finished and all passed. I'm gonna ask for review now, please let me if anything I'm missing before get merged :)

@XiShanYongYe-Chang
Copy link
Member

Some comments made by others can be closed after the current modification. Some discussion comments can be closed after an agreement is reached with the commenter.

@XiShanYongYe-Chang
Copy link
Member

/lgtm

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2024
@karmada-bot karmada-bot merged commit a87ec2a into karmada-io:master Jul 17, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants