nix: dedup vegeta command in nix loadtest
This commit is contained in:
committed by
Steve Chavez
parent
c318d46469
commit
ba7aaa8ab1
@@ -77,8 +77,8 @@ let
|
|||||||
# shellcheck disable=SC2145
|
# shellcheck disable=SC2145
|
||||||
${withTools.withPg} -f "$_arg_testdir"/fixtures.sql \
|
${withTools.withPg} -f "$_arg_testdir"/fixtures.sql \
|
||||||
${withTools.withPgrst} \
|
${withTools.withPgrst} \
|
||||||
sh -c "cd \"$_arg_testdir\" && ${runner} -lazy -targets gen_targets.http -output \"$abs_output\" \"''${_arg_leftovers[@]}\""
|
sh -c "cd \"$_arg_testdir\" && \
|
||||||
${vegeta}/bin/vegeta report -type=text "$_arg_output"
|
${runner} -lazy -targets gen_targets.http -output \"$abs_output\" \"''${_arg_leftovers[@]}\""
|
||||||
;;
|
;;
|
||||||
|
|
||||||
jwt-rsa-1k)
|
jwt-rsa-1k)
|
||||||
@@ -94,8 +94,8 @@ let
|
|||||||
# shellcheck disable=SC2145
|
# shellcheck disable=SC2145
|
||||||
${withTools.withPg} -f "$_arg_testdir"/fixtures.sql \
|
${withTools.withPg} -f "$_arg_testdir"/fixtures.sql \
|
||||||
${withTools.withPgrst} \
|
${withTools.withPgrst} \
|
||||||
sh -c "cd \"$_arg_testdir\" && ${runner} -lazy -targets gen_targets.http -output \"$abs_output\" \"''${_arg_leftovers[@]}\""
|
sh -c "cd \"$_arg_testdir\" && \
|
||||||
${vegeta}/bin/vegeta report -type=text "$_arg_output"
|
${runner} -lazy -targets gen_targets.http -output \"$abs_output\" \"''${_arg_leftovers[@]}\""
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
@@ -105,11 +105,12 @@ let
|
|||||||
${withTools.withSlowPg} \
|
${withTools.withSlowPg} \
|
||||||
${withTools.withPgrst} \
|
${withTools.withPgrst} \
|
||||||
${withTools.withSlowPgrst} \
|
${withTools.withSlowPgrst} \
|
||||||
sh -c "cd \"$_arg_testdir\" && ${runner} -targets targets.http -output \"$abs_output\" \"''${_arg_leftovers[@]}\""
|
sh -c "cd \"$_arg_testdir\" && \
|
||||||
${vegeta}/bin/vegeta report -type=text "$_arg_output"
|
${runner} -targets targets.http -output \"$abs_output\" \"''${_arg_leftovers[@]}\""
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
${vegeta}/bin/vegeta report -type=text "$_arg_output"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
loadtestAgainst =
|
loadtestAgainst =
|
||||||
|
|||||||
Reference in New Issue
Block a user