@@ -12,8 +12,8 @@ GREEN='\033[0;32m'
1212YELLOW=' \033[0;33m'
1313NC=' \033[0m' # No Color
1414
15- function prism_is_running () {
16- curl --silent " http://localhost :4010" > /dev/null 2>&1
15+ function steady_is_running () {
16+ curl --silent " http://127.0.0.1 :4010/_x-steady/health " > /dev/null 2>&1
1717}
1818
1919kill_server_on_port () {
@@ -28,7 +28,7 @@ function is_overriding_api_base_url() {
2828 [ -n " ${TEST_API_BASE_URL:- } " ]
2929}
3030
31- if ! is_overriding_api_base_url && ! prism_is_running ; then
31+ if ! is_overriding_api_base_url && ! steady_is_running ; then
3232 # When we exit this script, make sure to kill the background mock server process
3333 trap ' kill_server_on_port 4010' EXIT
3434
3939if is_overriding_api_base_url ; then
4040 echo -e " ${GREEN} ✔ Running tests against ${TEST_API_BASE_URL}${NC} "
4141 echo
42- elif ! prism_is_running ; then
43- echo -e " ${RED} ERROR:${NC} The test suite will not run without a mock Prism server"
42+ elif ! steady_is_running ; then
43+ echo -e " ${RED} ERROR:${NC} The test suite will not run without a mock Steady server"
4444 echo -e " running against your OpenAPI spec."
4545 echo
4646 echo -e " To run the server, pass in the path or url of your OpenAPI"
47- echo -e " spec to the prism command:"
47+ echo -e " spec to the steady command:"
4848 echo
49- echo -e " \$ ${YELLOW} npm exec --package=@stainless-api/prism- cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC} "
49+ 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=repeat --validator-query-object-format=brackets ${NC} "
5050 echo
5151
5252 exit 1
5353else
54- echo -e " ${GREEN} ✔ Mock prism server is running with your OpenAPI spec${NC} "
54+ echo -e " ${GREEN} ✔ Mock steady server is running with your OpenAPI spec${NC} "
5555 echo
5656fi
5757
0 commit comments