Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11756f6
commit 9f5b572
Showing
9 changed files
with
81 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
test/integration/default/default.yml → test/integration/1.x/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
- name: test playbook | ||
hosts: all | ||
sudo: yes | ||
become: yes | ||
vars: | ||
filebeat_version: 1.3.1 | ||
roles: | ||
- ansible-filebeat |
4 changes: 2 additions & 2 deletions
4
.../integration/version5.0/bats/default.bats → test/integration/5.x/bats/default.bats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/integration/version5.0/default.yml → test/integration/5.x/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
- name: test filebeat 5.0.0 install | ||
hosts: all | ||
sudo: yes | ||
become: yes | ||
vars: | ||
filebeat_version: 5.0.0 | ||
roles: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bats | ||
|
||
@test "filebeat binary is in path" { | ||
command -v filebeat | ||
} | ||
|
||
@test "/tmp/filebeat is in filebeat.yml config" { | ||
grep "file: {filename: filebeat, path: /tmp/filebeat}" /etc/filebeat/filebeat.yml | ||
} | ||
|
||
@test "filebeat is running" { | ||
service filebeat status | ||
} | ||
|
||
@test "ca certificate does not exist" { | ||
[ ! -f /etc/filebeat/ca.crt ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- name: test filebeat 6.x install | ||
hosts: all | ||
become: yes | ||
vars: | ||
filebeat_version: 6.4.2 | ||
roles: | ||
- ansible-filebeat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
- name: test playbook | ||
hosts: all | ||
sudo: yes | ||
become: yes | ||
vars: | ||
filebeat_ca_cert: |- | ||
-----BEGIN CERTIFICATE----- | ||
|