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: remove duplicate code of testing with operator #1472

Merged
merged 1 commit into from
Jul 25, 2023
Merged

e2e: remove duplicate code of testing with operator #1472

merged 1 commit into from
Jul 25, 2023

Conversation

hj-johannes-lee
Copy link
Contributor

@hj-johannes-lee hj-johannes-lee commented Jul 14, 2023

While working for #1470, I noticed that we have go-cognit's min-complexity value is 31 and in many parts, it is already so close to the value that little addition of the code causes an error message from the linter check.

I do not know if we need to decide to ignore that check for e2e tests, but there is one thing we can improve already.
Tests with operator have duplicate code, and seems to be right decision to make a common function in utils.go.

@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2023

Codecov Report

Merging #1472 (cdbc805) into main (e57723c) will not change coverage.
The diff coverage is n/a.

❗ Current head cdbc805 differs from pull request most recent head bec3dd0. Consider uploading reports for the commit bec3dd0 to get more accurate results

@@           Coverage Diff           @@
##             main    #1472   +/-   ##
=======================================
  Coverage   50.04%   50.04%           
=======================================
  Files          43       43           
  Lines        4884     4884           
=======================================
  Hits         2444     2444           
  Misses       2301     2301           
  Partials      139      139           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

test/e2e/iaa/iaa.go Outdated Show resolved Hide resolved
test/e2e/utils/utils.go Outdated Show resolved Hide resolved
test/e2e/utils/utils.go Outdated Show resolved Hide resolved
test/e2e/operator/operator.go Show resolved Hide resolved
test/e2e/operator/operator.go Show resolved Hide resolved
move duplicate code for testing plugins using operator to
operator module

replace the code for deploying operator webhook in operator module
with the code using utils.Kubectl to make simple for undeploying

Signed-off-by: Hyeongju Johannes Lee <[email protected]>
@hj-johannes-lee hj-johannes-lee merged commit 91d826f into intel:main Jul 25, 2023
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