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

@@ -341,6 +341,7 @@ func TestThirdParty_RequiredFields(t *testing.T) {
if !tt.skipOrganization {
input["organizationId"] = owner.GetOrganizationID().String()
}
maps.Copy(input, tt.input)
_, err := owner.Do(query, map[string]any{"input": input})
@@ -1020,6 +1021,7 @@ func TestThirdParty_Assess(t *testing.T) {
thirdPartyID := factory.NewThirdParty(owner).WithName("Unconfigured assess").Create()
var result resultShape
err := owner.Execute(query, map[string]any{
"input": map[string]any{
"id": thirdPartyID,
@@ -1037,6 +1039,7 @@ func TestThirdParty_Assess(t *testing.T) {
thirdPartyID := factory.NewThirdParty(owner).WithName("Admin-assessed thirdParty").Create()
var result resultShape
err := admin.Execute(query, map[string]any{
"input": map[string]any{
"id": thirdPartyID,
@@ -1054,6 +1057,7 @@ func TestThirdParty_Assess(t *testing.T) {
thirdPartyID := factory.NewThirdParty(owner).WithName("Viewer attempt").Create()
var result resultShape
err := viewer.Execute(query, map[string]any{
"input": map[string]any{
"id": thirdPartyID,
@@ -1071,6 +1075,7 @@ func TestThirdParty_Assess(t *testing.T) {
thirdPartyID := factory.NewThirdParty(org1Owner).WithName("Org1 thirdParty").Create()
var result resultShape
err := org2Owner.Execute(query, map[string]any{
"input": map[string]any{
"id": thirdPartyID,
@@ -1087,6 +1092,7 @@ func TestThirdParty_Assess(t *testing.T) {
thirdPartyID := factory.NewThirdParty(owner).WithName("Procedure test").Create()
var result resultShape
err := owner.Execute(query, map[string]any{
"input": map[string]any{
"id": thirdPartyID,