Skip to content

Commit

Permalink
refactor: clean pact_test template
Browse files Browse the repository at this point in the history
  • Loading branch information
opicaud committed Oct 31, 2023
1 parent 74c4eff commit bb7e054
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions private/pact/templates/pact_test.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,20 @@ _healthCheck () {
sleep 1
done
}
pwd
cp {libpact_ffi} $(dirname $(dirname {run_consumer_test}))
cp {libpact_ffi} .
ls .
echo "### Running Consumers Tests ###"
mkdir -p protobuf-0.3.5
cp {manifest} protobuf-0.3.5
cp {plugin} pact-protobuf-plugin
mv pact-protobuf-plugin protobuf-0.3.5
export PACT_PLUGIN_DIR=$(pwd)
./{run_consumer_test}
ls shape-app/api/pacts/
echo "### Running Providers Tests ###"
contract=$(dirname $(dirname {run_consumer_test}))/pacts/{contract}.json
pact_verifier_cli_args=$(cat {pact_verifier_cli_opts} || echo "--help")
side_car_cli_args=$(cat {side_car_opts} || echo "")
cli_args="$side_car_cli_args -f $contract $pact_verifier_cli_args"
echo $cli_args
while read first_line; read second_line
do
export "$first_line"="$second_line"
Expand Down

0 comments on commit bb7e054

Please sign in to comment.