Skip to content

Commit

Permalink
Remove test for UI to add a new site
Browse files Browse the repository at this point in the history
It's not a separate page now, and it's a React app so harder to test for
  • Loading branch information
davisagli committed Nov 2, 2024
1 parent f1ead94 commit d459d7b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 59 deletions.
12 changes: 0 additions & 12 deletions test/tests/plone-arbitrary-user/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@ get() {
-c "from urllib.request import urlopen; con = urlopen('$1'); print(con.read())"
}

get_auth() {
docker run --rm -i \
--link "$cname":plone \
--entrypoint /app/bin/python \
"$image" \
-c "from urllib.request import urlopen, Request; request = Request('$1'); request.add_header('Authorization', 'Basic $2'); print(urlopen(request).read())"
}


. "$dir/../../retry.sh" --tries "$PLONE_TEST_TRIES" --sleep "$PLONE_TEST_SLEEP" get "http://plone:8080"

# Plone is up and running
[[ "$(get 'http://plone:8080')" == *"Welcome to Plone!"* ]]

# Create a Plone site
[[ "$(get_auth 'http://plone:8080' "$(echo -n 'admin:admin' | base64)")" == *"Create a new site"* ]]
12 changes: 0 additions & 12 deletions test/tests/plone-basics/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,7 @@ get() {
-c "from urllib.request import urlopen; con = urlopen('$1'); print(con.read())"
}

get_auth() {
docker run --rm -i \
--link "$cname":plone \
--entrypoint /app/bin/python \
"$image" \
-c "from urllib.request import urlopen, Request; request = Request('$1'); request.add_header('Authorization', 'Basic $2'); print(urlopen(request).read())"
}


. "$dir/../../retry.sh" --tries "$PLONE_TEST_TRIES" --sleep "$PLONE_TEST_SLEEP" get "http://plone:8080"

# Plone is up and running
[[ "$(get 'http://plone:8080')" == *"Welcome to Plone!"* ]]

# Create a Plone site
[[ "$(get_auth 'http://plone:8080' "$(echo -n 'admin:admin' | base64)")" == *"Create a new site"* ]]
12 changes: 0 additions & 12 deletions test/tests/plone-relstorage/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,7 @@ get() {
-c "from urllib.request import urlopen; con = urlopen('$1'); print(con.read())"
}

get_auth() {
docker run --rm -i \
--link "$pname":plone \
--entrypoint /app/bin/python \
"$image" \
-c "from urllib.request import urlopen, Request; request = Request('$1'); request.add_header('Authorization', 'Basic $2'); print(urlopen(request).read())"
}

. "$dir/../../retry.sh" --tries "$PLONE_TEST_TRIES" --sleep "$PLONE_TEST_SLEEP" get "http://plone:8080"

# Plone is up and running
[[ "$(get 'http://plone:8080')" == *"Welcome to Plone!"* ]]

# Create a Plone site
[[ "$(get_auth 'http://plone:8080' "$(echo -n 'admin:admin' | base64)")" == *"Create a new site"* ]]

12 changes: 0 additions & 12 deletions test/tests/plone-shared-blob-dir/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,7 @@ get() {
-c "from urllib.request import urlopen; con = urlopen('$1'); print(con.read())"
}

get_auth() {
docker run --rm -i \
--link "${pname}":plone \
--entrypoint /app/bin/python \
"$image" \
-c "from urllib.request import urlopen, Request; request = Request('$1'); request.add_header('Authorization', 'Basic $2'); print(urlopen(request).read())"
}

. "$dir/../../retry.sh" --tries "$PLONE_TEST_TRIES" --sleep "$PLONE_TEST_SLEEP" get "http://plone:8080"

# Plone is up and running
[[ "$(get 'http://plone:8080')" == *"Welcome to Plone!"* ]]

# Create a Plone site
[[ "$(get_auth 'http://plone:8080' "$(echo -n 'admin:admin' | base64)")" == *"Create a new site"* ]]

11 changes: 0 additions & 11 deletions test/tests/plone-zeoclient/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,7 @@ get() {
-c "from urllib.request import urlopen; con = urlopen('$1'); print(con.read())"
}

get_auth() {
docker run --rm -i \
--link "$pname":plone \
--entrypoint /app/bin/python \
"$image" \
-c "from urllib.request import urlopen, Request; request = Request('$1'); request.add_header('Authorization', 'Basic $2'); print(urlopen(request).read())"
}

. "$dir/../../retry.sh" --tries "$PLONE_TEST_TRIES" --sleep "$PLONE_TEST_SLEEP" get "http://plone:8080"

# Plone is up and running
[[ "$(get 'http://plone:8080')" == *"Welcome to Plone!"* ]]

# Create a Plone site
[[ "$(get_auth 'http://plone:8080' "$(echo -n 'admin:admin' | base64)")" == *"Create a new site"* ]]

0 comments on commit d459d7b

Please sign in to comment.