Skip to content

Commit

Permalink
PR(FORMAT): Fix some odd formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadlone committed Dec 5, 2024
1 parent f18c151 commit 6c01501
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,12 @@ func TestACP_OwnerMakesAManagerThatGivesItSelfReadAndWriteAccess_ManagerCanReadA

Description: "Test acp, owner makes a manager that gives itself read and write access",

SupportedMutationTypes: immutable.Some([]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),
SupportedMutationTypes: immutable.Some(
[]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),

Actions: []any{
testUtils.AddPolicy{
Expand Down Expand Up @@ -850,11 +851,12 @@ func TestACP_ManagerAddsRelationshipWithRelationItDoesNotManageAccordingToPolicy

Description: "Test acp, manager adds relationship with relation it does not manage according to policy, error",

SupportedMutationTypes: immutable.Some([]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),
SupportedMutationTypes: immutable.Some(
[]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),

Actions: []any{
testUtils.AddPolicy{
Expand Down Expand Up @@ -1019,11 +1021,12 @@ func TestACP_OwnerMakesManagerButManagerCanNotPerformOperations_ManagerCantReadO

Description: "Test acp, owner makes a manager, manager can't read or write",

SupportedMutationTypes: immutable.Some([]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),
SupportedMutationTypes: immutable.Some(
[]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),

Actions: []any{
testUtils.AddPolicy{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ func TestACP_OwnerGivesUpdateWriteAccessToAnotherActorWithoutExplicitReadPerm_Ot

Description: "Test acp, owner gives write(update) access without explicit read permission, can still update",

SupportedMutationTypes: immutable.Some([]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),
SupportedMutationTypes: immutable.Some(
[]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),

Actions: []any{
testUtils.AddPolicy{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,11 @@ func TestACP_OwnerGivesOnlyReadAccessToAnotherActor_OtherActorCanReadButNotUpdat

Description: "Test acp, owner gives read access to another actor, but the other actor can't update",

SupportedMutationTypes: immutable.Some([]testUtils.MutationType{
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),
SupportedMutationTypes: immutable.Some(
[]testUtils.MutationType{
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),

Actions: []any{
testUtils.AddPolicy{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ func TestACP_OwnerGivesUpdateWriteAccessToAnotherActorTwice_GQL_ShowThatTheRelat

Description: "Test acp, owner gives write(update) access to another actor twice, no-op",

SupportedMutationTypes: immutable.Some([]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used so test that separately.
testUtils.GQLRequestMutationType,
}),
SupportedMutationTypes: immutable.Some(
[]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used so test that separately.
testUtils.GQLRequestMutationType,
}),

Actions: []any{
testUtils.AddPolicy{
Expand Down Expand Up @@ -184,10 +185,11 @@ func TestACP_OwnerGivesUpdateWriteAccessToAnotherActor_GQL_OtherActorCanUpdate(t

Description: "Test acp, owner gives write(update) access to another actor",

SupportedMutationTypes: immutable.Some([]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used so test that separately.
testUtils.GQLRequestMutationType,
}),
SupportedMutationTypes: immutable.Some(
[]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used so test that separately.
testUtils.GQLRequestMutationType,
}),

Actions: []any{
testUtils.AddPolicy{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ func TestACP_OwnerGivesUpdateWriteAccessToAnotherActorTwice_ShowThatTheRelations

Description: "Test acp, owner gives write(update) access to another actor twice, no-op",

SupportedMutationTypes: immutable.Some([]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),
SupportedMutationTypes: immutable.Some(
[]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),

Actions: []any{
testUtils.AddPolicy{
Expand Down Expand Up @@ -185,11 +186,12 @@ func TestACP_OwnerGivesUpdateWriteAccessToAnotherActor_OtherActorCanUpdate(t *te

Description: "Test acp, owner gives write(update) access to another actor",

SupportedMutationTypes: immutable.Some([]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),
SupportedMutationTypes: immutable.Some(
[]testUtils.MutationType{
// GQL mutation will return no error when wrong identity is used with gql (only for update requests),
testUtils.CollectionNamedMutationType,
testUtils.CollectionSaveMutationType,
}),

Actions: []any{
testUtils.AddPolicy{
Expand Down

0 comments on commit 6c01501

Please sign in to comment.