diff --git a/.golangci.yml b/.golangci.yml index 29ebe759..bcade7e1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -10,11 +10,11 @@ linters-settings: modules: - github.com/pkg/errors: recommendations: - - errors + - errors stylecheck: # STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks # Default: ["*"] - checks: [ "all", "-ST1000", "-ST1003" ] + checks: ["all", "-ST1000", "-ST1003"] linters: enable: @@ -116,6 +116,7 @@ issues: - path: cmd/ocfclient/main\.go linters: - gocognit + - goconst - gocyclo - gosec diff --git a/client/updateResource_test.go b/client/updateResource_test.go index 736dd931..c478f25d 100644 --- a/client/updateResource_test.go +++ b/client/updateResource_test.go @@ -200,7 +200,7 @@ func TestClientUpdateResourceInRFOTM(t *testing.T) { deviceID: deviceID, href: configuration.ResourceURI, data: map[string]interface{}{ - "n": t.Name() + "-valid", + "n": t.Name() + "-forbidden", }, opts: []client.UpdateOption{client.WithDiscoveryConfiguration(core.DefaultDiscoveryConfiguration())}, },