Update e2e tests and n8n node for the portal
Follow the new domain model in tests: drop organization profile assertions, add a trust center profile test, and hit the dedicated HTTPS listener with SNI for the visitor API. Mirror the custom link rename and profile field moves in the n8n node operations. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -1324,7 +1324,7 @@ func TestRBAC(t *testing.T) {
|
||||
client: owner,
|
||||
query: updateOrganizationMutation,
|
||||
variables: func() map[string]any {
|
||||
return map[string]any{"input": map[string]any{"organizationId": owner.GetOrganizationID().String(), "description": factory.SafeName("Updated Desc")}}
|
||||
return map[string]any{"input": map[string]any{"organizationId": owner.GetOrganizationID().String(), "name": factory.SafeName("Updated Org")}}
|
||||
},
|
||||
shouldAllow: true,
|
||||
useConnect: true,
|
||||
@@ -1335,7 +1335,7 @@ func TestRBAC(t *testing.T) {
|
||||
client: admin,
|
||||
query: updateOrganizationMutation,
|
||||
variables: func() map[string]any {
|
||||
return map[string]any{"input": map[string]any{"organizationId": owner.GetOrganizationID().String(), "description": factory.SafeName("Updated Desc")}}
|
||||
return map[string]any{"input": map[string]any{"organizationId": owner.GetOrganizationID().String(), "name": factory.SafeName("Updated Org")}}
|
||||
},
|
||||
shouldAllow: true,
|
||||
useConnect: true,
|
||||
@@ -1346,7 +1346,7 @@ func TestRBAC(t *testing.T) {
|
||||
client: viewer,
|
||||
query: updateOrganizationMutation,
|
||||
variables: func() map[string]any {
|
||||
return map[string]any{"input": map[string]any{"organizationId": owner.GetOrganizationID().String(), "description": factory.SafeName("Updated Desc")}}
|
||||
return map[string]any{"input": map[string]any{"organizationId": owner.GetOrganizationID().String(), "name": factory.SafeName("Updated Org")}}
|
||||
},
|
||||
shouldAllow: false,
|
||||
useConnect: true,
|
||||
|
||||
Reference in New Issue
Block a user