chore: bump @grafana/create-plugin configuration to 5.26.4 (#2082)

Bumps
[`@grafana/create-plugin`](https://github.com/grafana/plugin-tools/tree/main/packages/create-plugin)
configuration from 4.2.1 to 5.26.4.

**Notes for reviewer:**
This is an auto-generated PR which ran `@grafana/create-plugin update`.
Please consult the create-plugin
[CHANGELOG.md](https://github.com/grafana/plugin-tools/blob/main/packages/create-plugin/CHANGELOG.md)
to understand what may have changed.
Please review the changes thoroughly before merging.

---------

Co-authored-by: grafana-plugins-platform-bot[bot] <144369747+grafana-plugins-platform-bot[bot]@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
This commit is contained in:
github-actions[bot]
2025-09-17 20:33:12 +02:00
committed by GitHub
parent e76741b453
commit b13d567eee
54 changed files with 15452 additions and 10339 deletions

View File

@@ -118,7 +118,7 @@ func (api *ZabbixAPI) request(ctx context.Context, method string, params ZabbixA
if auth != "" && version >= 72 {
if api.dsSettings.BasicAuthEnabled {
return nil, backend.DownstreamError(errors.New("Basic Auth is not supported for Zabbix v7.2 and later"))
return nil, backend.DownstreamErrorf("basic auth is not supported for Zabbix v7.2 and later")
}
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", auth))
}
@@ -223,7 +223,11 @@ func makeHTTPRequest(ctx context.Context, httpClient *http.Client, req *http.Req
}
return nil, err
}
defer res.Body.Close()
defer func() {
if err := res.Body.Close(); err != nil {
log.DefaultLogger.Warn("Error closing response body", "error", err)
}
}()
if res.StatusCode != http.StatusOK {
err = fmt.Errorf("request failed, status: %v", res.Status)

View File

@@ -155,7 +155,7 @@ func TestIntegrationZabbixAPI72(t *testing.T) {
// Try to authenticate
_, err = apiWithBasicAuth.Request(context.Background(), "hostgroup.get", params, zabbixVersion)
require.Error(t, err)
assert.Contains(t, err.Error(), "Basic Auth is not supported for Zabbix v7.2 and later")
assert.Contains(t, err.Error(), "basic auth is not supported for Zabbix v7.2 and later")
assert.True(t, backend.IsDownstreamError(err))
})
}

View File

@@ -155,7 +155,7 @@ func TestIntegrationZabbixAPI74(t *testing.T) {
// Try to authenticate
_, err = apiWithBasicAuth.Request(context.Background(), "hostgroup.get", params, zabbixVersion)
require.Error(t, err)
assert.Contains(t, err.Error(), "Basic Auth is not supported for Zabbix v7.2 and later")
assert.Contains(t, err.Error(), "basic auth is not supported for Zabbix v7.2 and later")
assert.True(t, backend.IsDownstreamError(err))
})
}