Add wsl linter and fix

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:51:08 +04:00
parent eedfdcecc8
commit 9156d6a16a
882 changed files with 6068 additions and 574 deletions

View File

@@ -23,7 +23,9 @@ import (
func TestMain(m *testing.M) {
testutil.Setup()
code := m.Run()
testutil.Teardown()
os.Exit(code)
}

View File

@@ -127,6 +127,7 @@ func TestMCP_ListThirdPartyContacts(t *testing.T) {
"email": factory.SafeEmail(),
}, &result)
require.NotEmpty(t, result.ThirdPartyContact.ID)
_ = i
}

View File

@@ -120,6 +120,7 @@ func TestMCP_ListThirdPartyServices(t *testing.T) {
"name": factory.SafeName("Service"),
}, &result)
require.NotEmpty(t, result.ThirdPartyService.ID)
_ = i
}

View File

@@ -36,6 +36,7 @@ func TestMCP_ThirdParty_CRUD(t *testing.T) {
Name string `json:"name"`
} `json:"third_party"`
}
name := factory.SafeName("ThirdParty")
mc.CallToolInto("addThirdParty", map[string]any{
"organizationId": orgID,

View File

@@ -220,6 +220,7 @@ func TestMCP_ListTrustCenterReferences(t *testing.T) {
"url": "https://example.com/" + factory.SafeName("path"),
}, &result)
require.NotEmpty(t, result.TrustCenterReference.ID)
_ = i
}
@@ -395,6 +396,7 @@ func TestMCP_ListComplianceExternalURLs(t *testing.T) {
"url": "https://example.com/" + factory.SafeName("path"),
}, &result)
require.NotEmpty(t, result.ComplianceExternalURL.ID)
_ = i
}