Skip to content

Commit

Permalink
TASK: Remove migrateWorkspaceMetadataToWorkspaceService hack from e…
Browse files Browse the repository at this point in the history
…2e tests and use `assignrole`
  • Loading branch information
mhsdesign committed Oct 9, 2024
1 parent 04ab019 commit 3b752f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Tests/IntegrationTests/e2e-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ dc exec -T php bash <<-'BASH'
./flow cr:setup --content-repository onedimension
./flow cr:import --content-repository onedimension --path ./DistributionPackages/Neos.Test.OneDimension/Resources/Private/Content
# Hack to create Neos workspace metadata for the live workspace (Failed to load metadata for workspace "live").
./flow migrateevents:migrateWorkspaceMetadataToWorkspaceService --content-repository onedimension
# Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
# TODO: Fix when part of importer: Add Neos workspace role for the live workspace
./flow workspace:assignrole live Neos.Neos:LivePublisher collaborator --content-repository onedimension
# TODO: Fix when part of importer: Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
./flow site:create neos-test-onedimension Neos.Test.OneDimension Neos.TestNodeTypes:Document.HomePage
./flow domain:add neos-test-onedimension onedimension.localhost --port 8081
./flow cr:setup --content-repository twodimensions
./flow cr:import --content-repository twodimensions --path ./DistributionPackages/Neos.Test.TwoDimensions/Resources/Private/Content
# Hack to create Neos workspace metadata for the live workspace (Failed to load metadata for workspace "live").
./flow migrateevents:migrateWorkspaceMetadataToWorkspaceService --content-repository onedimension
# Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
# TODO: Fix when part of importer: Add Neos workspace role for the live workspace
./flow workspace:assignrole live Neos.Neos:LivePublisher collaborator --content-repository twodimensions
# TODO: Fix when part of importer: Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
./flow site:create neos-test-twodimensions Neos.Test.TwoDimensions Neos.TestNodeTypes:Document.HomePage
./flow domain:add neos-test-twodimensions twodimensions.localhost --port 8081
Expand Down
12 changes: 6 additions & 6 deletions Tests/IntegrationTests/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ function run_tests() {

./flow cr:setup --content-repository onedimension
./flow cr:import --content-repository onedimension --path ./DistributionPackages/Neos.Test.OneDimension/Resources/Private/Content
# Hack to create Neos workspace metadata for the live workspace (Failed to load metadata for workspace "live").
./flow migrateevents:migrateWorkspaceMetadataToWorkspaceService --content-repository onedimension
# Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
# TODO: Fix when part of importer: Add Neos workspace role for the live workspace
./flow workspace:assignrole live Neos.Neos:LivePublisher collaborator --content-repository onedimension
# TODO: Fix when part of importer: Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
./flow site:create neos-test-onedimension Neos.Test.OneDimension Neos.TestNodeTypes:Document.HomePage
./flow domain:add neos-test-onedimension onedimension.localhost --port 8081

./flow cr:setup --content-repository twodimensions
./flow cr:import --content-repository twodimensions --path ./DistributionPackages/Neos.Test.TwoDimensions/Resources/Private/Content
# Hack to create Neos workspace metadata for the live workspace (Failed to load metadata for workspace "live").
./flow migrateevents:migrateWorkspaceMetadataToWorkspaceService --content-repository onedimension
# Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
# TODO: Fix when part of importer: Add Neos workspace role for the live workspace
./flow workspace:assignrole live Neos.Neos:LivePublisher collaborator --content-repository twodimensions
# TODO: Fix when part of importer: Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
./flow site:create neos-test-twodimensions Neos.Test.TwoDimensions Neos.TestNodeTypes:Document.HomePage
./flow domain:add neos-test-twodimensions twodimensions.localhost --port 8081

Expand Down

0 comments on commit 3b752f6

Please sign in to comment.