Use custom user agent in HTTP header so we can identify requests from terraform.
Type of Change
[ ] Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
[X] New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR.
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR.
[ ] This change requires a documentation update
[ ] Documentation fix/enhancement
Manual Testing Approach
How was this change tested and do you have evidence? (REQUIRED: Select at least 1)
[X] Manually tested
[ ] Unit tested
[ ] Acceptance tested
[ ] Unable to test / will not test (Please provide comments in section below)
Testing
Tested by retrieving org details from terraform. This uses ExecuteWithRetry.
Validated with tcpdump we get custom user agent:
Transmission Control Protocol, Src Port: 60791, Dst Port: 8084, Seq: 1, Ack: 1, Len: 328
Hypertext Transfer Protocol
GET /v4/organizations/ffffffff-aaaa-1414-eeee-000000000000 HTTP/1.1\r\n
Host: localhost:8084\r\n
User-Agent: terraform-provider-couchbase-capella/1.2.0\r\n
Authorization: Bearer <token>\r\n
Accept-Encoding: gzip\r\n
Required Checklist:
[X] I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
[X] I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
[X] I have added any necessary documentation (if required)
Jira
Description
Use custom user agent in HTTP header so we can identify requests from terraform.
Type of Change
Manual Testing Approach
How was this change tested and do you have evidence? (REQUIRED: Select at least 1)
Testing
Tested by retrieving org details from terraform. This uses
ExecuteWithRetry
.Validated with
tcpdump
we get custom user agent:Required Checklist:
Further comments