Skip to content

Commit

Permalink
make minor test improvements to aem-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-ayala committed Sep 12, 2024
1 parent 253826a commit 06b9819
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions test/aem-sdk/defaults-with-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ check "start-aem is +x" \
stat -c '%A' $(which start-aem) | grep 'x.*x.*x'
# Check that author/publish/dispatcher installs and starts
check "can install & run author" \
bash -c "start-aem author | grep 'hello, world'"
start-aem author | grep 'hello, world'
check "can install & run publish" \
bash -c "start-aem publish | grep 'hello, world'"
start-aem publish | grep 'hello, world'
check "can install & run dispatcher" \
bash -c "start-aem dispatcher | grep 'All your base are belong to us'"
start-aem dispatcher | grep 'All your base are belong to us'

reportResults
8 changes: 4 additions & 4 deletions test/aem-sdk/options-with-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source dev-container-features-test-lib
# Check options file created with defaults
source ${AEM_SDK_FEATURE_DIR}/options.sh
check "sdks directory default" \
echo "${AEM_SDK_SDKS_DIRECTORY}" | grep -E "^/workspaces/[0-9]+/.devcontainer/sdksfolder$"
echo "${AEM_SDK_SDKS_DIRECTORY}" | grep -E "^/workspaces/[0-9]+/.devcontainer$"
check "sdk version default" \
[ "${AEM_SDK_VERSION}" = "mock-2024.02.01" ]
check "author port default" \
Expand All @@ -21,10 +21,10 @@ check "start-aem is +x" \
stat -c '%A' $(which start-aem) | grep 'x.*x.*x'
# Check that author/publish/dispatcher installs and starts
check "can install & run author" \
bash -c "start-aem author | grep 'hello, world'"
start-aem author | grep 'hello, world'
check "can install & run publish" \
bash -c "start-aem publish | grep 'hello, world'"
start-aem publish | grep 'hello, world'
check "can install & run dispatcher" \
bash -c "start-aem dispatcher | grep 'All your base are belong to us'"
start-aem dispatcher | grep 'All your base are belong to us'

reportResults
2 changes: 1 addition & 1 deletion test/aem-sdk/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"features": {
"ghcr.io/devcontainers/features/java:1": {},
"aem-sdk": {
"sdksDirectory": "${containerWorkspaceFolder}/.devcontainer/sdksfolder",
"sdksDirectory": "${containerWorkspaceFolder}/.devcontainer",
"sdkVersion": "mock-2024.02.01",
"authorPort": "3001",
"publishPort": "3002",
Expand Down

0 comments on commit 06b9819

Please sign in to comment.