@@ -23,7 +23,9 @@ import (
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
testutil.Setup()
|
||||
|
||||
code := m.Run()
|
||||
|
||||
testutil.Teardown()
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
@@ -127,6 +127,7 @@ func TestMCP_ListThirdPartyContacts(t *testing.T) {
|
||||
"email": factory.SafeEmail(),
|
||||
}, &result)
|
||||
require.NotEmpty(t, result.ThirdPartyContact.ID)
|
||||
|
||||
_ = i
|
||||
}
|
||||
|
||||
|
||||
@@ -120,6 +120,7 @@ func TestMCP_ListThirdPartyServices(t *testing.T) {
|
||||
"name": factory.SafeName("Service"),
|
||||
}, &result)
|
||||
require.NotEmpty(t, result.ThirdPartyService.ID)
|
||||
|
||||
_ = i
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user