Merge lp:~axino/mojo/mojo-specs into lp:mojo/mojo-specs

Proposed by Junien F
Status: Merged
Approved by: Paul Gear
Approved revision: no longer in the source branch.
Merged at revision: 101
Proposed branch: lp:~axino/mojo/mojo-specs
Merge into: lp:mojo/mojo-specs
Diff against target: 72 lines (+40/-5)
3 files modified
charm-testing/filebeat/deploy (+9/-5)
charm-testing/filebeat/post-deploy (+26/-0)
charm-testing/filebeat/pre-deploy (+5/-0)
To merge this branch: bzr merge lp:~axino/mojo/mojo-specs
Reviewer Review Type Date Requested Status
Paul Gear (community) Approve
Review via email: mp+342456@code.launchpad.net

Commit message

charm-testing/filebeat : fix for bionic

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Paul Gear (paulgear) wrote :

Makes sense

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 101

lp:~axino/mojo/mojo-specs updated
101. By Junien F

charm-testing/filebeat : fix for bionic

Reviewed-on: https://code.launchpad.net/~axino/mojo/mojo-specs/+merge/342456
Reviewed-by: Paul Gear <email address hidden>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'charm-testing/filebeat/deploy'
--- charm-testing/filebeat/deploy 2018-03-21 14:07:00 +0000
+++ charm-testing/filebeat/deploy 2018-03-30 14:21:57 +0000
@@ -6,13 +6,17 @@
6 filebeat:6 filebeat:
7 charm: filebeat7 charm: filebeat
8 options:8 options:
9 install_sources: deb http://archive.admin.canonical.com/other/packages.elastic.co stable main9 install_sources: 'deb http://archive.admin.canonical.com/other/packages.elastic.co stable main'
10 elasticsearch:10 elasticsearch:
11 charm: elasticsearch11 charm: elasticsearch
12 series: trusty12 series: trusty
13 num_units: 2
13 options:14 options:
14 apt-key-url: http://archive.admin.canonical.com/other/artifacts.elastic.co/GPG-KEY-elasticsearch15 apt-key-url: 'http://archive.admin.canonical.com/other/artifacts.elastic.co/GPG-KEY-elasticsearch'
15 apt-repository: deb http://archive.admin.canonical.com/other/artifacts.elastic.co stable main16 apt-repository: 'deb http://archive.admin.canonical.com/other/artifacts.elastic.co stable main'
17 nrpe-trusty:
18 charm: nrpe
19 series: trusty
16 nrpe:20 nrpe:
17 charm: nrpe21 charm: nrpe
18 {% if series == "xenial" or series == "bionic" %}options:22 {% if series == "xenial" or series == "bionic" %}options:
@@ -22,4 +26,4 @@
22 - ['ubuntu', 'filebeat']26 - ['ubuntu', 'filebeat']
23 - ['filebeat:elasticsearch', 'elasticsearch:client']27 - ['filebeat:elasticsearch', 'elasticsearch:client']
24 - ['nrpe', 'ubuntu']28 - ['nrpe', 'ubuntu']
25 - ['nrpe', 'elasticsearch']29 - ['nrpe-trusty', 'elasticsearch']
2630
=== added file 'charm-testing/filebeat/post-deploy'
--- charm-testing/filebeat/post-deploy 1970-01-01 00:00:00 +0000
+++ charm-testing/filebeat/post-deploy 2018-03-30 14:21:57 +0000
@@ -0,0 +1,26 @@
1#!/bin/bash
2
3set -eu
4
5TEST_MESSAGE="testfilebeatmessage"
6# filebeat doesn't process syslog by default
7# so use auth.crit instead
8TEST_FACILITY="auth.crit"
9
10echo "Starting functional testing of filebeat."
11
12# Generate a message in a file watched by filebeat
13juju ssh ubuntu/0 logger -p ${TEST_FACILITY} ${TEST_MESSAGE}
14
15# filebeat scan_frequency defaults to 10s, so sleep for 15s
16sleep 15
17
18# Check if the message made it to elasticsearch
19hits=$(juju ssh elasticsearch/0 curl -s "localhost:9200/_search?q=${TEST_MESSAGE}"|jq '.hits.total')
20if [ "$hits" != "1" ]; then
21 echo "ERROR : test message not found in elasticsearch"
22 exit 1
23else
24 echo "SUCCESS : test message found in elasticsearch"
25 exit 0
26fi
027
=== added file 'charm-testing/filebeat/pre-deploy'
--- charm-testing/filebeat/pre-deploy 1970-01-01 00:00:00 +0000
+++ charm-testing/filebeat/pre-deploy 2018-03-30 14:21:57 +0000
@@ -0,0 +1,5 @@
1#!/bin/bash
2
3mkdir -p $MOJO_REPO_DIR/trusty
4rsync -av $MOJO_REPO_DIR/bionic/elasticsearch $MOJO_REPO_DIR/trusty/
5rsync -av $MOJO_REPO_DIR/bionic/nrpe $MOJO_REPO_DIR/trusty/

Subscribers

People subscribed via source and target branches

to all changes: