Skip to content

Commit f38d133

Browse files
committed
Remove schemathesis
1 parent 2df5bc4 commit f38d133

File tree

3 files changed

+1
-43
lines changed

3 files changed

+1
-43
lines changed

api/Makefile

+1-22
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Parts of the project are originally copyright © Meta Platforms, Inc.
33
# SPDX-License-Identifier: Apache-2.0
44

5-
test: clean lint test-code-gen test-api-spec clean
5+
test: clean lint test-code-gen clean
66

77
lint:
88
$(call lint,doc/spec.yaml)
@@ -17,30 +17,9 @@ clean:
1717
- rm -f openapitools.json
1818
- rm -rf .hypothesis
1919

20-
test-api-spec:
21-
$(call test_api_spec,spec.yaml)
22-
2320
serve:
2421
cd doc && python3 -m http.server 8888
2522

26-
define test_api_spec
27-
- pkill aptos-node
28-
cargo build -p aptos-node
29-
./../target/debug/aptos-node --test --lazy &
30-
31-
curl https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh > /tmp/wait-for-it.sh
32-
chmod +x /tmp/wait-for-it.sh
33-
/tmp/wait-for-it.sh -t 300 localhost:8080
34-
35-
schemathesis run --method GET \
36-
--show-errors-tracebacks \
37-
--code-sample-style=curl \
38-
--store-network-log=./../target/schemathesis-network-log.yaml \
39-
--checks all \
40-
--base-url http://localhost:8080 \
41-
http://localhost:8080/$(1)
42-
endef
43-
4423
define lint
4524
npx @redocly/openapi-cli lint $(1) --skip-rule no-empty-servers
4625
endef

scripts/dev_setup.sh

-19
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ function usage {
4545
echo "-o install operations tooling as well: helm, terraform, yamllint, vault, docker, kubectl, python3"
4646
echo "-y install or update Move Prover tools: z3, cvc5, dotnet, boogie"
4747
echo "-d install tools for the Move documentation generator: graphviz"
48-
echo "-a install tools for build and test api"
4948
echo "-P install PostgreSQL"
5049
echo "-J install js/ts tools"
5150
echo "-v verbose mode"
@@ -801,13 +800,6 @@ protoc and related plugins (since -r was provided):
801800
EOF
802801
fi
803802

804-
if [[ "$INSTALL_API_BUILD_TOOLS" == "true" ]]; then
805-
cat <<EOF
806-
API build and testing tools (since -a was provided):
807-
* Python3 (schemathesis)
808-
EOF
809-
fi
810-
811803
if [[ "$INSTALL_POSTGRES" == "true" ]]; then
812804
cat <<EOF
813805
PostgreSQL database (since -P was provided):
@@ -848,7 +840,6 @@ INSTALL_PROFILE=false
848840
INSTALL_PROVER=false
849841
INSTALL_DOC=false
850842
INSTALL_PROTOC=false
851-
INSTALL_API_BUILD_TOOLS=false
852843
INSTALL_POSTGRES=false
853844
INSTALL_JSTS=false
854845
INSTALL_INDIVIDUAL=false
@@ -884,9 +875,6 @@ while getopts "btoprvydaPJh:i:nk" arg; do
884875
d)
885876
INSTALL_DOC="true"
886877
;;
887-
a)
888-
INSTALL_API_BUILD_TOOLS="true"
889-
;;
890878
P)
891879
INSTALL_POSTGRES="true"
892880
;;
@@ -920,7 +908,6 @@ if [[ "$INSTALL_BUILD_TOOLS" == "false" ]] &&
920908
[[ "$INSTALL_PROFILE" == "false" ]] &&
921909
[[ "$INSTALL_PROVER" == "false" ]] &&
922910
[[ "$INSTALL_DOC" == "false" ]] &&
923-
[[ "$INSTALL_API_BUILD_TOOLS" == "false" ]] &&
924911
[[ "$INSTALL_POSTGRES" == "false" ]] &&
925912
[[ "$INSTALL_JSTS" == "false" ]] &&
926913
[[ "$INSTALL_INDIVIDUAL" == "false" ]]; then
@@ -1083,12 +1070,6 @@ if [[ "$INSTALL_DOC" == "true" ]]; then
10831070
install_pkg graphviz "$PACKAGE_MANAGER"
10841071
fi
10851072

1086-
if [[ "$INSTALL_API_BUILD_TOOLS" == "true" ]]; then
1087-
# python and tools
1088-
install_python3
1089-
"${PRE_COMMAND[@]}" python3 -m pip install schemathesis
1090-
fi
1091-
10921073
if [[ "$INSTALL_POSTGRES" == "true" ]]; then
10931074
install_postgres
10941075
fi

scripts/windows_dev_setup.ps1

-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ function build_tools_message {
5050
* protoc-gen-prost-crate
5151
* Python (and necessary components)
5252
* pip
53-
* schemathesis
5453
* LLVM
5554
* CMake
5655
* OpenSSL
@@ -364,7 +363,6 @@ function install_python {
364363
winget upgrade --id Python.Python.3.11 --silent --accept-source-agreements
365364
}
366365
python -m pip install --upgrade pip
367-
python -m pip install schemathesis
368366
}
369367

370368
function install_pnpm {

0 commit comments

Comments
 (0)