-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: added LOCAL_DEV env variable for api mock development #45
Conversation
@jackdelahunt It's not working for me. I exported my token and then run: resource.tf
output logs
Oh, and I'm running the server as a docker container:
Also, do I need a valid token to use the server? |
The token request is made separately against RedHat SSO. This should be avoided (in the code) if running TF against localhost or a flag. |
I've cloned the repo again and it just worked 🤯 I guess I was doing something wrong. In any case, thanks a lot for these changes @jackdelahunt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified! Great PR!
Description
This pr adds functionality for the provider to use the local mock server found here. This means when calling on the API to provision resources for us it goes trough the mock API and not the real one.
Verify
Terraform config (main.tf)
Commands
make clean
make install
LOCAL_DEV=http://localhost:8000 terraform init
LOCAL_DEV=http://localhost:8000 terraform apply
Expected Results
You should receive a success message saying the kafka was created