test: add e2e test for openstack metrics scaler#7638
test: add e2e test for openstack metrics scaler#7638Abhicodeitout wants to merge 9 commits intokedacore:mainfrom
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Thank you for your contribution! 🙏 Please understand that we will do our best to review your PR and give you feedback as soon as possible, but please bear with us if it takes a little longer as expected. While you are waiting, make sure to:
Once the initial tests are successful, a KEDA member will ensure that the e2e tests are run. Once the e2e tests have been successfully completed, the PR may be merged at a later date. Please be patient. Learn more about our contribution guide. |
|
Hi! I see in the description that you want to provide an e2e test, for which thanks. |
|
@rickbrouwer So should I revert those and fix only tests one |
|
Yes please, that keeps the PR scoped |
a942e02 to
3021816
Compare
|
@rickbrouwer is there some issue in the Github actions |
You need to run ‘go fmt .’ in the directory where you added the file |
I have ran that but then also |
|
@dangerousplay is there any plublic group on discord slack or telegram where we discuss to the issues or workspace |
Perhaps you ran it from the wrong place. Otherwise, go to the directory and run it there. Also, please sign your commits (DCO). |
I think you're posting this in the wrong place? |
b1ff136 to
85a87c4
Compare
|
@rickbrouwer can you review ? |
Revert unrelated changes from this branch so PR kedacore#7638 only contains the intended OpenStack metrics e2e test work. This commit removes accidental modifications to workflow files, changelog, and metrics API scaler implementation/tests that belong to a separate effort. Also aligns with reviewer request to keep the PR narrowly scoped. Signed-off-by: Abhishek Kumar Kushwaha <abhithegabbar@gmail.com>
|
@rickbrouwer can you review ? |
|
Can you undo the GitHub workflows and changelog changes? |
d4cbf0c to
374b43c
Compare
|
@rickbrouwer i have reverted changes can you review ? |
|
There are still adjustments out of scope. |
|
@rickbrouwer can u look now hope this time it goes well |
|
Looks good overall, but a few things caught my eye.
Further, with granularity=300, the scaler computes (300/60) - 1 = 4 and then adds that to |
|
5aac460 to
12158be
Compare
|
/run-e2e openstack |
|
@rickbrouwer @JorTurFer CAN YOU TRIGGER TEST RUN ? |
Signed-off-by: Abhishek Kumar Kushwaha <abhithegabbar@gmail.com>
|
@rickbrouwer @JorTurFer CAN YOU RUN THE TESTS ? |
|
@rickbrouwer what happened are there any mis changes ? |
|
Please avoid all caps, it comes across as impolite. |
|
I see that the fix you made earlier is suddenly gone. Is it no longer needed? |
|
@rickbrouwer actually earlier rebase went wrong now i have corrected it can you trigger it now ? i tried to mock as suggested by @JorTurFer for gnoochi and tested it went well |
|
I mean, you initially made a change in the OpenStack scaler itself due to a bug, right? But I don't see that in this pr anymore. |
Signed-off-by: Abhishek Kumar Kushwaha <abhithegabbar@gmail.com>
|
@rickbrouwer i have updated the code and fixed the bug and tested by mocking. Can you trigger the test ? |
|
/run-e2e openstack_metrics |
Signed-off-by: Abhishek Kumar Kushwaha <abhithegabbar@gmail.com>
|
/run-e2e openstack_metrics |
|
If its good can i get a merge @rickbrouwer @JorTurFer |
|
The test was skipped due to a missing variable OPENSTACK_METRICS_URL: |
So what should be that url ? @rickbrouwer |
Signed-off-by: Abhishek Kumar Kushwaha <abhithegabbar@gmail.com>
|
@rickbrouwer can you start test |
|
@rickbrouwer can you trigger test? |
|
/run-e2e openstack_metrics |
|
=== RUN TestScaler |
|
@rickbrouwer |
Signed-off-by: Abhishek Kumar Kushwaha <abhithegabbar@gmail.com>
Signed-off-by: Abhishek Kumar Kushwaha <abhithegabbar@gmail.com>
|
@rickbrouwer can you trigger test run |
|
/run-e2e openstack_metrics |
Provide a description of what has been changed
Checklist
make generate-scalers-schemahas been run to update any outdated generated filesFixes #4155