Skip to content

Commit 7e5bacb

Browse files
Readme adjustments, added code coverage
Signed-off-by: Decker, Stefan <[email protected]>
1 parent cfa2bed commit 7e5bacb

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ services:
88
install:
99
- ./gradlew build -x check --no-daemon
1010

11+
script: ./gradlew check javadoc --no-daemon && ./gradlew jacocoTestReport
1112

12-
jobs:
13-
include:
14-
- stage: test
15-
env: [ NAME=functionallity ]
16-
script: ./gradlew check javadoc --no-daemon
13+
after_success:
14+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[![Build Status](https://travis-ci.org/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback.svg?branch=master)](https://travis-ci.org/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback)
2-
3-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c3a48bd0e2e64a2499cc25c7d2a3abe6)](https://app.codacy.com/app/StefanHufschmidt/Graylog-Plugin-AlertManager-Callback?utm_source=github.com&utm_medium=referral&utm_content=GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback&utm_campaign=Badge_Grade_Dashboard)
4-
5-
[![Known Vulnerabilities](https://snyk.io/test/github/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback/badge.svg)](https://snyk.io/test/github/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback)
2+
&nbsp;&nbsp;&nbsp;[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c3a48bd0e2e64a2499cc25c7d2a3abe6)](https://app.codacy.com/app/StefanHufschmidt/Graylog-Plugin-AlertManager-Callback?utm_source=github.com&utm_medium=referral&utm_content=GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback&utm_campaign=Badge_Grade_Dashboard)
3+
&nbsp;&nbsp;&nbsp;[![codecov](https://codecov.io/gh/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback/branch/master/graph/badge.svg)](https://codecov.io/gh/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback)
4+
&nbsp;&nbsp;&nbsp;[![Known Vulnerabilities](https://snyk.io/test/github/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback/badge.svg)](https://snyk.io/test/github/GDATASoftwareAG/Graylog-Plugin-AlertManager-Callback)
65

76
# Graylog AlertManager Notification Plugin
87
This plugin can be used for connecting [Graylog](https://www.graylog.org/) alerts to the [Prometheus](https://prometheus.io/) [AlertManager](https://prometheus.io/docs/alerting/alertmanager/).
@@ -44,8 +43,9 @@ Follow the instructions mentioned [here](http://docs.graylog.org/en/2.4/pages/pl
4443
You would like to contribute anything? - Take a look at [CONTRIBUTING.md](CONTRIBUTING.md).
4544

4645
## Known Issues
47-
* The test-callback does not work as expected, it will cause an error instead of a notification
48-
* Workaround: You have to create a stream with a alert condition to test the callback
46+
* The test alert will not be shown in AlertManager
47+
* When clicking on `Test` to test your callback configuration it will show a green ok bar when everything is fine but the alert will not be shown in the AlertManager
48+
* You have to create a stream with a alert condition to test the callback alert in AlertManager
4949

5050
You would like to contribute anything? - Take a look at [CONTRIBUTING.md](CONTRIBUTING.md).
5151

build.gradle

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ targetCompatibility = 1.8
3333

3434

3535
repositories {
36-
mavenCentral()
36+
maven {
37+
url "https://plugins.gradle.org/m2/"
38+
}
3739
maven { url 'http://repo.spring.io/plugins-release/'}
3840
}
3941

4042
dependencies {
41-
// https://mvnrepository.com/artifact/org.graylog2/graylog2-plugin
43+
// https://mvnrepository.com/artifact/org.graylog2/graylog2-server
4244
compile group: 'org.graylog2', name: 'graylog2-server', version: '2.5.0'
4345

4446
// https://mvnrepository.com/artifact/org.jboss.dashboard-builder/dashboard-builder-bom
@@ -82,4 +84,13 @@ jar {
8284
'Graylog-Plugin-Properties-Path': 'de.gdata.mobilelab.alertmanagercallback.graylog-plugin-alertmanagercallback'
8385
)
8486
}
85-
}
87+
}
88+
89+
jacocoTestReport {
90+
reports {
91+
xml.enabled true
92+
xml.destination new File("${buildDir}/reports/jacoco/report.xml")
93+
csv.enabled false
94+
html.enabled false
95+
}
96+
}

0 commit comments

Comments
 (0)