Skip to content

Commit

Permalink
Berzan/circleci add run test (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berzan Yildiz authored Jun 30, 2020
1 parent 15d2958 commit 26a93ee
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
- run:
name: Install Plugin
command: sudo /usr/share/logstash/bin/logstash-plugin install logstash-output-datadog_logs-${VERSION}.gem
- run:
name: Run Logstash
shell: /bin/sh
command: |
sudo timeout 30s /usr/share/logstash/bin/logstash -r -f "test/test.conf"
test "$?" -eq 124
logstash_v6:
machine: true
Expand All @@ -50,6 +56,12 @@ jobs:
- run:
name: Install Plugin
command: sudo /usr/share/logstash/bin/logstash-plugin install logstash-output-datadog_logs-${VERSION}.gem
- run:
name: Run Logstash
shell: /bin/sh
command: |
sudo timeout 30s /usr/share/logstash/bin/logstash -r -f "test/test.conf"
test "$?" -eq 124
logstash_v7:
machine: true
Expand All @@ -74,6 +86,12 @@ jobs:
- run:
name: Install Plugin
command: sudo /usr/share/logstash/bin/logstash-plugin install logstash-output-datadog_logs-${VERSION}.gem
- run:
name: Run Logstash
shell: /bin/sh
command: |
sudo timeout 30s /usr/share/logstash/bin/logstash -r -f "test/test.conf"
test "$?" -eq 124
test:
docker:
Expand Down
2 changes: 1 addition & 1 deletion spec/outputs/datadog_logs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ def stub_dd_request(api_key)
})
end

end
end
14 changes: 14 additions & 0 deletions test/test.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
input {
file {
path => ["/home/circleci/project/test/test.log"]
}
}

output {
datadog_logs {
api_key => ""
host => "localhost"
port => 8090
}
}

Empty file added test/test.log
Empty file.

0 comments on commit 26a93ee

Please sign in to comment.