jcambass / toxiproxy_ex Goto Github PK
View Code? Open in Web Editor NEWToxiproxyEx is an Elixir API client for the resilience testing tool Toxiproxy.
License: MIT License
ToxiproxyEx is an Elixir API client for the resilience testing tool Toxiproxy.
License: MIT License
Thanks for the library! ๐
Seems like some of the POST
methods on toxiproxy have been turned into PATCH
es. I get this from the toxiproxy logs when using ToxiproxyEx:
ProxyUpdate: HTTP method POST is depercated. Use HTTP PATCH instead.
We might not be able to just replace the POST
s with PATCH
es, and might have to do so conditionally based on the toxiproxy version.
To reproduce the error.
$ asdf install; rm -rf deps/; mix deps.get; mix compile
Result.
warning: MIME.from_path/1 defined in application :mime is used by the current
application but the current application does not directly depend on :mime. To
fix this, you must do one of:
1. If :mime is part of Erlang/Elixir, you must include it under
:extra_applications inside "def application" in you r mix.exs
2. If :mime is a dependency, make sure it is listed under "def deps" in your
mix.exs
3. In case you don't want to add a requirement to :mime, you may optionally
skip this warning by adding [xref: [exc lude: MIME]] to your "def project" in
mix.exs
lib/tesla/multipart.ex:102: Tesla.Multipart.add_file/3
warning: Mint.HTTP.close/1 defined in application :mint is used by the current
application but the current applicatio n does not directly depend on :mint. To
fix this, you must do one of:
1. If :mint is part of Erlang/Elixir, you must include it under
:extra_applications inside "def application" in you r mix.exs
2. If :mint is a dependency, make sure it is listed under "def deps" in your
mix.exs
3. In case you don't want to add a requirement to :mint, you may optionally
skip this warning by adding [xref: [exc lude: Mint.HTTP]] to your "def
project" in mix.exs
lib/tesla/adapter/mint.ex:87: Tesla.Adapter.Mint.close/1
...
Different user may install different Toxiproxy version.
1) doctest ToxiproxyEx.version!/0 (19) (ToxiproxyExTest)
test/toxiproxy_ex_test.exs:3
Doctest failed
doctest:
iex> ToxiproxyEx.version!()
"2.1.2"
code: ToxiproxyEx.version!() === "2.1.2"
left: "2.1.4"
right: "2.1.2"
stacktrace:
lib/toxiproxy_ex.ex:436: ToxiproxyEx (module)
Elixir/OTP version: 1.14.3/24
Toxyproxy version: 2.5.0
Got the following error intermittently:
test/integration/fill_stream_test.exs:98
** (ToxiproxyEx.ServerError) Could not fetch proxies.
code: for product_symbol <- product_symbols do
stacktrace:
(toxiproxy_ex 1.1.0) lib/toxiproxy_ex.ex:162: ToxiproxyEx.all!/0
(toxiproxy_ex 1.1.0) lib/toxiproxy_ex.ex:118: ToxiproxyEx.get!/1
test/integration/fill_stream_test.exs:149: anonymous fn/4 in FillStreamTest."test FillStream behaviour correctly starts the supervision tree and process the stream"/1
(elixir 1.14.3) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
test/integration/fill_stream_test.exs:144: (test)
Sometimes it's "Could not fetch proxies", another time it's "Could not disable proxy".
Sample:
https://gist.github.com/ukazap/ed7fc6f598abee0e0d14c6ac1796b87e#file-fill_stream_test-exs-L33
https://gist.github.com/ukazap/ed7fc6f598abee0e0d14c6ac1796b87e#file-fill_stream_test-exs-L41
https://gist.github.com/ukazap/ed7fc6f598abee0e0d14c6ac1796b87e#file-fill_stream_test-exs-L147
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.