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

Adding a fake controller-runtime Client implementation and improving operator tests #247

Merged
merged 56 commits into from
Oct 25, 2021

Conversation

arschles
Copy link
Collaborator

@arschles arschles commented Aug 30, 2021

This patch implements a fake version of the controller-runtime's Client interface which both records calls to its various functionality and allows the user control over most (some are not implemented) of the functions that it contains. This fake client allows us to test more of the operator's functionality.

This PR is dependent on #206 and is submitted as a draft. It should not be reviewed or merged until #206 is complete.
Update: #206 is merged, and this PR has been removed from draft mode. It is ready for review.

Checklist

Fixes #228

arschles and others added 30 commits August 18, 2021 15:05
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
…mponents

Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
…mponents

Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
…t (so the scaler can read it later)

Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
…lience.

Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
this makes tests easier

Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
…loyments cache endpoint

Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
@arschles arschles changed the title check operator cfg maps Adding a fake controller-runtime Client implementation and improving operator tests Aug 30, 2021
@arschles arschles mentioned this pull request Aug 30, 2021
29 tasks
…rator-cfg-maps

Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
@arschles arschles marked this pull request as ready for review September 7, 2021 20:57
@arschles arschles requested a review from ajanth97 as a code owner September 13, 2021 17:27
@arschles arschles enabled auto-merge (squash) September 13, 2021 17:56
@arschles arschles added this to the v0.2.0 milestone Sep 22, 2021
Copy link

@bketelsen bketelsen left a comment

Choose a reason for hiding this comment

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

LGTM

@arschles arschles disabled auto-merge October 25, 2021 18:36
@arschles
Copy link
Collaborator Author

Thanks @bketelsen!

Even though the linkinator check is failing, I am still going to merge this. The work to fix this is in kedacore/keda#2215 and will be done separately.

@arschles arschles merged commit 119e0ea into kedacore:main Oct 25, 2021
@arschles arschles deleted the check-operator-cfg-maps branch October 25, 2021 19:05
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.

Check for config maps to be changed in the operator routing table tests
2 participants