Skip to content

Commit 3c0c18a

Browse files
authored
Merge pull request #226 from logstash-plugins/jsvd-patch-1
remove .travis.yml customization
2 parents 2b4301b + 3d73567 commit 3c0c18a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import:
2-
- logstash-plugins/.ci:travis/[email protected]
3-
- logstash-plugins/.ci:travis/[email protected]
2+
- logstash-plugins/.ci:travis/[email protected]
43

5-
env:
6-
jobs:
7-
- ELASTIC_STACK_VERSION=8.x DOCKER_ENV=dockerjdk17.env
8-
- SNAPSHOT=true ELASTIC_STACK_VERSION=8.x DOCKER_ENV=dockerjdk17.env
4+
jobs:
5+
exclude:
6+
- env: ELASTIC_STACK_VERSION=7.current
7+
- env: SNAPSHOT=true ELASTIC_STACK_VERSION=7.current

spec/inputs/tcp_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ def get_port
9090
aggregate_failures("event #{i}") do
9191
expect(event.get("message")).to eq("#{i} ☹")
9292
expect(event.get(ecs_select[disabled: "host", v1: "[@metadata][input][tcp][source][name]"])).to eq("localhost").or eq("ip6-localhost")
93-
expect(event.get(ecs_select[disabled: "[@metadata][ip_address]", v1: "[@metadata][input][tcp][source][ip]"])).to eq('127.0.0.1')
93+
ip_address = event.get(ecs_select[disabled: "[@metadata][ip_address]", v1: "[@metadata][input][tcp][source][ip]"])
94+
# Account for both ipv4 or ipv6 localhost
95+
expect(["127.0.0.1", "::1", "0:0:0:0:0:0:0:1"]).to include(ip_address)
9496
end
9597
end
9698
end

0 commit comments

Comments
 (0)