Skip to content

Commit 1fca678

Browse files
committed
requirements for running the .sh files in localhost environments
1 parent aa934da commit 1fca678

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

cache/__tests__/cache-metrics-worst-case.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ get_auth_token() {
121121
echo "This test requires a valid Auth0 bearer token to test write operations."
122122
echo "Please obtain a fresh token from: https://devstore.rerum.io/"
123123
echo ""
124+
echo "Remember to delete your created junk and deleted junk. Run the following commands"
125+
echo "with mongosh for whatever MongoDB you are writing into:"
126+
echo ""
127+
echo " db.alpha.deleteMany({\"__rerum.generatedBy\": \"YOUR_BEARER_AGENT\"});"
128+
echo " db.alpha.deleteMany({\"__deleted.object.__rerum.generatedBy\": \"YOUR_BEARER_AGENT\"});"
129+
echo ""
124130
echo -n "Enter your bearer token (or press Enter to skip): "
125131
read -r AUTH_TOKEN
126132

cache/__tests__/cache-metrics.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ get_auth_token() {
120120
echo "This test requires a valid Auth0 bearer token to test write operations."
121121
echo "Please obtain a fresh token from: https://devstore.rerum.io/"
122122
echo ""
123+
echo "Remember to delete your created junk and deleted junk. Run the following commands"
124+
echo "with mongosh for whatever MongoDB you are writing into:"
125+
echo ""
126+
echo " db.alpha.deleteMany({\"__rerum.generatedBy\": \"YOUR_BEARER_AGENT\"});"
127+
echo " db.alpha.deleteMany({\"__deleted.object.__rerum.generatedBy\": \"YOUR_BEARER_AGENT\"});"
128+
echo ""
123129
echo -n "Enter your bearer token (or press Enter to skip): "
124130
read -r AUTH_TOKEN
125131

0 commit comments

Comments
 (0)