InfluxDB annotations e2e tests

Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
Lorenzo Fontana 2018-05-19 16:45:17 +02:00
parent d434583b53
commit c3b896dfbc
No known key found for this signature in database
GPG key ID: 0D48B0B074C3DC15
4 changed files with 369 additions and 2 deletions

View file

@ -69,7 +69,7 @@ func TestIngressInfluxDB(t *testing.T) {
data[parser.GetAnnotationWithPrefix("enable-influxdb")] = "true"
data[parser.GetAnnotationWithPrefix("influxdb-measurement")] = "nginxmeasures"
data[parser.GetAnnotationWithPrefix("influxdb-port")] = "9091"
data[parser.GetAnnotationWithPrefix("influxdb-host")] = "mytelegrafserver.mycompany.mytld"
data[parser.GetAnnotationWithPrefix("influxdb-host")] = "10.99.0.13"
data[parser.GetAnnotationWithPrefix("influxdb-server-name")] = "nginx-test-1"
ing.SetAnnotations(data)
@ -91,7 +91,7 @@ func TestIngressInfluxDB(t *testing.T) {
t.Errorf("expected port not found. Found %v", nginxInflux.InfluxDBPort)
}
if nginxInflux.InfluxDBHost != "mytelegrafserver.mycompany.mytld" {
if nginxInflux.InfluxDBHost != "10.99.0.13" {
t.Errorf("expected host not found. Found %v", nginxInflux.InfluxDBHost)
}