Giter Club home page Giter Club logo

toxiproxy_ex's People

Contributors

dependabot[bot] avatar jcambass avatar kianmeng avatar whatyouhide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

toxiproxy_ex's Issues

Replace POST with PATCH

Thanks for the library! ๐Ÿ’Ÿ

Seems like some of the POST methods on toxiproxy have been turned into PATCHes. 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 POSTs with PATCHes, and might have to do so conditionally based on the toxiproxy version.

Missing `:mime` and `:mint` warnings?

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

...

Test case failed due to different Toxiproxy installed

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)

Intermittent ServerError

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.