|
|
@ -183,18 +183,17 @@ func TestRemoteLokiBackend(t *testing.T) { |
|
|
|
}, |
|
|
|
}, |
|
|
|
exp: `{orgID="123",from="state-history",ruleUID="rule-uid"}`, |
|
|
|
exp: `{orgID="123",from="state-history",ruleUID="rule-uid"}`, |
|
|
|
}, |
|
|
|
}, |
|
|
|
// TODO this case is flaky - investigate and re-enable. ref: https://drone.grafana.net/grafana/grafana/108325/3/7
|
|
|
|
{ |
|
|
|
//{
|
|
|
|
name: "filters instance labels in log line", |
|
|
|
// name: "filters instance labels in log line",
|
|
|
|
query: models.HistoryQuery{ |
|
|
|
// query: models.HistoryQuery{
|
|
|
|
OrgID: 123, |
|
|
|
// OrgID: 123,
|
|
|
|
Labels: map[string]string{ |
|
|
|
// Labels: map[string]string{
|
|
|
|
"customlabel": "customvalue", |
|
|
|
// "customlabel": "customvalue",
|
|
|
|
"labeltwo": "labelvaluetwo", |
|
|
|
// "labeltwo": "labelvaluetwo",
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
exp: `{orgID="123",from="state-history"} | json | labels_customlabel="customvalue" | labels_labeltwo="labelvaluetwo"`, |
|
|
|
// exp: `{orgID="123",from="state-history"} | json | labels_customlabel="customvalue" | labels_labeltwo="labelvaluetwo"`,
|
|
|
|
}, |
|
|
|
//},
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for _, tc := range cases { |
|
|
|
for _, tc := range cases { |
|
|
|