github.com/waldiirawan/apm-agent-go/v2@v2.2.2/features/api_key.feature (about) 1 Feature: APM server authentication with API key and secret token 2 3 Scenario: A configured API key is sent in the Authorization header 4 Given an agent configured with 5 | setting | value | 6 | api_key | RTNxMjlXNEJt | 7 When the agent sends a request to APM server 8 Then the Authorization header of the request is 'ApiKey RTNxMjlXNEJt' 9 10 Scenario: A configured secret token is sent in the Authorization header 11 Given an agent configured with 12 | setting | value | 13 | secret_token | secr3tT0ken | 14 When the agent sends a request to APM server 15 Then the Authorization header of the request is 'Bearer secr3tT0ken' 16 17 Scenario: A configured API key takes precedence over a secret token 18 Given an agent configured with 19 | setting | value | 20 | api_key | MjlXNEJasdfDt | 21 | secret_token | secr3tT0ken | 22 When the agent sends a request to APM server 23 Then the Authorization header of the request is 'ApiKey MjlXNEJasdfDt' 24