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

[e2e] add support bundle test cases #1408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lanfon72
Copy link
Member

Changes

@lanfon72 lanfon72 requested a review from a team July 29, 2024 19:24
Copy link
Collaborator

@khushboo-rancher khushboo-rancher left a comment

Choose a reason for hiding this comment

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

LGTM.

Can we take this time and handle few more things in supportbundle tests as below

  1. The test_longfile_exists doesn't check all the log files, can we include all the log files checks?
  2. I think we can skip the test_delete for supportbundle. It would be good if we have supportbundle after tests run.

f"{fails}"
)

support_bundle_state.fio.seek(0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this necessary?
If so, perhaps better move to L#121?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is necessary when following test cases going to read the fio again. and yeah move to L121 would be good.

@lanfon72
Copy link
Member Author

lanfon72 commented Aug 5, 2024

LGTM.

Can we take this time and handle few more things in supportbundle tests as below

  1. The test_longfile_exists doesn't check all the log files, can we include all the log files checks?
  2. I think we can skip the test_delete for supportbundle. It would be good if we have supportbundle after tests run.
  1. could you make the list of all log files? the test_longfile_exists was implemented based on [e2e] [FEATURE] collect Fleet logs and YAMLs in support bundles #350, I don't have no idea how many log files is necessary and we need to verify them.
  2. the delete method is not available for users, the test case is targeting to test the API's functionality, and we save the SB as a temporarily file, it will be removed after test finished. and according to [e2e] [ENHANCEMENT] Support bundle resource clean up #1037, support bundles will be clean up automatically, if we already have test report, do we still need the support bundle? (excepts upgrade testing)

@khushboo-rancher
Copy link
Collaborator

I don't have no idea how many log files is necessary and we need to verify them.

If you can't add test here as you don't have idea, could you help create a test ticket to cover it.

if we already have test report, do we still need the support bundle?

Yes

@lanfon72
Copy link
Member Author

lanfon72 commented Aug 5, 2024

I don't have no idea how many log files is necessary and we need to verify them.

If you can't add test here as you don't have idea, could you help create a test ticket to cover it.

if we already have test report, do we still need the support bundle?

Yes

so yeah, please create another ticket for your request, not ASK them in PRs.

@lanfon72
Copy link
Member Author

lanfon72 commented Aug 5, 2024

I don't want to fight in public space, but I FREQUENTLY FEEL uncomfortable when a PR is resolving some issues, but it be asked to stack up to fix other problems.

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.

3 participants