Skip to content

Commit

Permalink
test: synchronizing gherkin specs
Browse files Browse the repository at this point in the history
  • Loading branch information
apmmachine committed Oct 12, 2021
1 parent 2e40422 commit 3f266eb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions apm-agent-core/src/test/resources/specs/user_agent.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Feature: Agent Transport User agent Header

Scenario: Default user-agent
Given an agent
When service name is not set
When service version is not set
Then the User-Agent header matches regex '^apm-agent-[a-z]+/[^ ]*'

Scenario: User-agent with service name only
Given an agent
When service name is set to 'myService'
When service version is not set
Then the User-Agent header matches regex '^apm-agent-[a-z]+/[^ ]* \(myService\)'

Scenario: User-agent with service name and service version
Given an agent
When service name is set to 'myService'
When service version is set to 'v42'
Then the User-Agent header matches regex '^apm-agent-[a-z]+/[^ ]* \(myService v42\)'

0 comments on commit 3f266eb

Please sign in to comment.