mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Team LBAC: Limit access to data source (#78376)
* Team LBAC: Limit access to data source * Fix tests
This commit is contained in:
@@ -63,14 +63,16 @@ func TestTeamHTTPHeaders(t *testing.T) {
|
||||
testCases := []struct {
|
||||
desc string
|
||||
given string
|
||||
want TeamHTTPHeaders
|
||||
want *TeamHTTPHeaders
|
||||
}{
|
||||
{
|
||||
desc: "Usual json data with teamHttpHeaders",
|
||||
given: `{"teamHttpHeaders": {"101": [{"header": "X-CUSTOM-HEADER", "value": "foo"}]}}`,
|
||||
want: TeamHTTPHeaders{
|
||||
"101": {
|
||||
{Header: "X-CUSTOM-HEADER", Value: "foo"},
|
||||
given: `{"teamHttpHeaders": {"headers": {"101": [{"header": "X-CUSTOM-HEADER", "value": "foo"}]}}}`,
|
||||
want: &TeamHTTPHeaders{
|
||||
Headers: TeamHeaders{
|
||||
"101": {
|
||||
{Header: "X-CUSTOM-HEADER", Value: "foo"},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user