Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Gartland committed Jan 31, 2024
1 parent 0c9c630 commit 2f5769d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 38 deletions.
12 changes: 2 additions & 10 deletions test/bats/contract/deploy.bats
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ load '../node_modules/bats-assert/load'
source ../content/bundles/${CONTENT}/test/.publisher-env
CONTENT_PATH='../content/bundles/'

# these python apis cannot be detected by publisher
# known issue #794


# deploy content with the env account
@test "deploy ${CONTENT}" {
# if [[ ${CONTENT} == *"quart"* || ${CONTENT} == *"pycnic"* || ${CONTENT} == *"bottle"* ]]; then
# skip "${CONTENT} can't be detected - #794"
# fi

run ${EXE} deploy ${CONTENT_PATH}/${CONTENT} -n ci_deploy
assert_success
assert_output --partial "Test Deployment... [OK]"
Expand All @@ -29,9 +23,7 @@ CONTENT_PATH='../content/bundles/'

# redeploy content from previous test
@test "redeploy ${CONTENT}" {
# if [[ ${CONTENT} == *"quart"* || ${CONTENT} == *"pycnic"* || ${CONTENT} == *"bottle"* ]]; then
# skip "${CONTENT} can't be detected - #794"
# fi

run ${EXE} redeploy ci_deploy ${CONTENT_PATH}${CONTENT}
assert_success
assert_output --partial "Test Deployment... [OK]"
Expand Down
6 changes: 3 additions & 3 deletions test/bats/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ test-contract:
fi

# content_list will contain all content in
content_list=$(python ../deploy_helper.py)
IFS=' ' read -ra my_array <<< "${content_list}"
for i in ${my_array[@]}
content_list=$(find ../content/bundles -type d -depth 1 -exec basename {} ';')
# IFS=' ' read -ra my_array <<< "${content_list}"
for i in ${content_list}
do
# only test when we have a .publisher-env file for the content
if [[ -f ../content/bundles/${i}/test/.publisher-env ]]; then
Expand Down
25 changes: 0 additions & 25 deletions test/deploy_helper.py

This file was deleted.

0 comments on commit 2f5769d

Please sign in to comment.