Skip to content

Commit e6f4a70

Browse files
committed
TASK: Adjust to importer change site:importall
1 parent 42b0cf3 commit e6f4a70

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

Tests/IntegrationTests/e2e-docker.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,10 @@ dc exec -T php bash <<-'BASH'
5757
./flow user:create --username=editor --password=editor --first-name=Editor --last-name=McEditworth --roles=Editor || true
5858
5959
./flow cr:setup --content-repository onedimension
60-
./flow cr:import --content-repository onedimension --path ./DistributionPackages/Neos.Test.OneDimension/Resources/Private/Content
61-
# TODO: Fix when part of importer: Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
62-
./flow site:create neos-test-onedimension Neos.Test.OneDimension Neos.TestNodeTypes:Document.HomePage
63-
./flow domain:add neos-test-onedimension onedimension.localhost --port 8081
60+
./flow site:importall --content-repository onedimension --path ./DistributionPackages/Neos.Test.OneDimension/Resources/Private/Content
6461
6562
./flow cr:setup --content-repository twodimensions
66-
./flow cr:import --content-repository twodimensions --path ./DistributionPackages/Neos.Test.TwoDimensions/Resources/Private/Content
67-
# TODO: Fix when part of importer: Connect to a Neos site, todo the nodeTypeName parameter is obsolete but necessary
68-
./flow site:create neos-test-twodimensions Neos.Test.TwoDimensions Neos.TestNodeTypes:Document.HomePage
69-
./flow domain:add neos-test-twodimensions twodimensions.localhost --port 8081
63+
./flow site:importall --content-repository twodimensions --path ./DistributionPackages/Neos.Test.TwoDimensions/Resources/Private/Content
7064
7165
./flow resource:publish
7266
BASH

Tests/IntegrationTests/start-neos-dev-instance.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,15 @@ dc exec -T php bash <<-BASH
5959
rm -rf ./TestDistribution/DistributionPackages/Neos.TestSite
6060
ln -s "../../Fixtures/1Dimension/SitePackage" ./TestDistribution/DistributionPackages/Neos.TestSite
6161
62-
# TODO: optimize this
6362
cd TestDistribution
6463
composer reinstall neos/test-site
6564
./flow flow:cache:flush --force
6665
./flow flow:cache:warmup
6766
./flow configuration:show --path Neos.ContentRepository.contentDimensions
6867
69-
if ./flow site:list | grep -q 'Node name'; then
70-
./flow site:prune '*'
71-
fi
72-
./flow cr:setup
7368
./flow cr:setup --content-repository onedimension
74-
./flow cr:setup --content-repository twodimensions
75-
./flow cr:import --content-repository onedimension Packages/Sites/Neos.Test.OneDimension/Resources/Private/Content
76-
./flow site:create neos-test-onedimension Neos.Test.OneDimension Neos.TestNodeTypes:Document.HomePage
69+
./flow site:pruneAll --content-repository onedimension --force --verbose
70+
./flow site:importAll --content-repository onedimension --package-key Neos.Test.OneDimension --verbose
7771
./flow resource:publish
7872
BASH
7973

0 commit comments

Comments
 (0)