Skip to content

Commit 69af4aa

Browse files
apmmachineapmmachine
andauthored
test: synchronizing gherkin specs (#1356)
Co-authored-by: apmmachine <infra-root-apmmachine@elastic.co>
1 parent 75fc7ba commit 69af4aa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Feature: Agent Transport User agent Header
2+
3+
Scenario: Default user-agent
4+
Given an agent
5+
When service name is not set
6+
When service version is not set
7+
Then the User-Agent header matches regex '^apm-agent-[a-z]+/[^ ]*'
8+
9+
Scenario: User-agent with service name only
10+
Given an agent
11+
When service name is set to 'myService'
12+
When service version is not set
13+
Then the User-Agent header matches regex '^apm-agent-[a-z]+/[^ ]* \(myService\)'
14+
15+
Scenario: User-agent with service name and service version
16+
Given an agent
17+
When service name is set to 'myService'
18+
When service version is set to 'v42'
19+
Then the User-Agent header matches regex '^apm-agent-[a-z]+/[^ ]* \(myService v42\)'

0 commit comments

Comments
 (0)