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

Issue with k6 Test Execution and Missing k6-test-secret #1838

Closed
itsUtkarsh2306 opened this issue Dec 8, 2023 · 7 comments
Closed

Issue with k6 Test Execution and Missing k6-test-secret #1838

itsUtkarsh2306 opened this issue Dec 8, 2023 · 7 comments
Labels

Comments

@itsUtkarsh2306
Copy link

itsUtkarsh2306 commented Dec 8, 2023

Hello,

I'm currently setting up a benchmarking environment for Ditto with the following components:

  1. Ditto running on Kubernetes.
  2. Kafka, mmock, and k6-operator also running on Kubernetes.
  3. All the tests have been uploaded as per the documentation.
    During the execution of the tests using the command k create -f k6-ditto-benchmark-test.yaml, I encountered an error indicating that the k6-test-secret was not found. This secret is not present in the directory, nor is it mentioned in any of the provided YAML files.

Could you please provide guidance on what should be included in the k6-test-secret and how we can configure it correctly?

@thjaeckle
Copy link
Member

@vvasilevbosch could you please have a look?

@vvasilevbosch
Copy link
Contributor

I will check this

@vvasilevbosch
Copy link
Contributor

The benchmark test does not use any secrets. I ran ran the benchmark locally and noticed I have left a env var that is unused, and perhaps causing the issue - 'AUTHORIZATION_HEADER_VALUE'. I will open a PR soon, but I hit some other issues with xk6-kafka as well, they seem to have changed the type of a property, that is used and the benchmark is not working with xk6-kafka >= 20.0.0.

@vvasilevbosch
Copy link
Contributor

Follow this PR, after it's merged, it should all be working #1849

@itsUtkarsh2306
Copy link
Author

I tried running the latest benchmark.I followed every steps and I was able to see the kafka connection made and the connetion status is Open and succeeded, But then I am getting a error which says in the logs of k6-ditto-benchmark-test-1
time="2024-01-02T10:45:59Z" level=error msg="ReferenceError: connectionStatusError is not defined\n\tat setup (file:///test/k6-test.js:143:60(114))\n" hint="script exception"

@vvasilevbosch
Copy link
Contributor

I clearly missed declaring this variable and didn't test out the creation of things after my refactor. I opened PR #1855

@vvasilevbosch
Copy link
Contributor

#1855 is closed now, it should be all fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants