@@ -9,8 +9,8 @@ GREEN='\033[0;32m'
99YELLOW=' \033[0;33m'
1010NC=' \033[0m' # No Color
1111
12- function prism_is_running () {
13- curl --silent " http://localhost :4010" > /dev/null 2>&1
12+ function steady_is_running () {
13+ curl --silent " http://127.0.0.1 :4010/_x-steady/health " > /dev/null 2>&1
1414}
1515
1616kill_server_on_port () {
@@ -25,7 +25,7 @@ function is_overriding_api_base_url() {
2525 [ -n " $TEST_API_BASE_URL " ]
2626}
2727
28- if ! is_overriding_api_base_url && ! prism_is_running ; then
28+ if ! is_overriding_api_base_url && ! steady_is_running ; then
2929 # When we exit this script, make sure to kill the background mock server process
3030 trap ' kill_server_on_port 4010' EXIT
3131
3636if is_overriding_api_base_url ; then
3737 echo -e " ${GREEN} ✔ Running tests against ${TEST_API_BASE_URL}${NC} "
3838 echo
39- elif ! prism_is_running ; then
40- echo -e " ${RED} ERROR:${NC} The test suite will not run without a mock Prism server"
39+ elif ! steady_is_running ; then
40+ echo -e " ${RED} ERROR:${NC} The test suite will not run without a mock Steady server"
4141 echo -e " running against your OpenAPI spec."
4242 echo
4343 echo -e " To run the server, pass in the path or url of your OpenAPI"
44- echo -e " spec to the prism command:"
44+ echo -e " spec to the steady command:"
4545 echo
46- echo -e " \$ ${YELLOW} npm exec --package=@stainless-api/prism- cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC} "
46+ echo -e " \$ ${YELLOW} npm exec --package=@stdy/ cli@0.19.3 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-query-object-format=dots ${NC} "
4747 echo
4848
4949 exit 1
5050else
51- echo -e " ${GREEN} ✔ Mock prism server is running with your OpenAPI spec${NC} "
51+ echo -e " ${GREEN} ✔ Mock steady server is running with your OpenAPI spec${NC} "
5252 echo
5353fi
5454
0 commit comments