mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
feature: [Marathon SD] fixed test cases
This commit is contained in:
parent
a28c3a5afa
commit
4143af6127
1 changed files with 14 additions and 1 deletions
|
@ -91,7 +91,20 @@ func TestGetAppsList_Success(t *testing.T) {
|
||||||
t.Fatalf("unexpected error in GetAppsList(): %s", err)
|
t.Fatalf("unexpected error in GetAppsList(): %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
expect := AppList{}
|
expect := &AppList{
|
||||||
|
Apps: []app{
|
||||||
|
{
|
||||||
|
ID: "/myapp",
|
||||||
|
PortDefinitions: []portDefinition{
|
||||||
|
{
|
||||||
|
Labels: map[string]string{"pdl1": "pdl1", "pdl2": "pdl2"},
|
||||||
|
Port: 1999,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Labels: map[string]string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
if !reflect.DeepEqual(apps, expect) {
|
if !reflect.DeepEqual(apps, expect) {
|
||||||
t.Fatalf("unexpected result, got: %v, expect: %v", apps, expect)
|
t.Fatalf("unexpected result, got: %v, expect: %v", apps, expect)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue