Commit Graph

318 Commits

Author SHA1 Message Date
Jean-Sébastien Pédron 3d73a97764 Update copyright (year 2020) 2020-03-10 16:07:18 +01:00
Gerhard Lazu 3276b9a61d Update rabbitmq-components.mk 2020-03-06 09:19:14 +00:00
Gerhard Lazu 2b1506d3c5 Update erlang.mk 2020-03-06 09:17:23 +00:00
Jean-Sébastien Pédron 48301ae30d Travis CI: Update config from rabbitmq-common 2020-03-04 14:24:27 +01:00
Jean-Sébastien Pédron 964dd688a3 Travis CI: Update config from rabbitmq-common 2020-03-04 11:17:14 +01:00
Jean-Sébastien Pédron 38793f4b99 Travis CI: Update config from rabbitmq-common 2020-03-03 14:53:37 +01:00
Gerhard Lazu ffb05cba4a Update rabbitmq-components.mk 2020-02-11 15:31:42 +00:00
Michael Klishin 6f30bd60d2 EUnit expects a list here 2019-12-31 16:04:14 +03:00
Michael Klishin 60662817a7 Avoid doubling leading slash that messed up request signing 2019-12-31 15:35:51 +03:00
Michael Klishin e59345ab60 Make sure instance metadata URLs are correct post uri_string refactoring 2019-12-31 12:26:33 +03:00
Michael Klishin ce629dbc48 Export rabbitmq_aws_config:instance_role_url/0 2019-12-31 12:04:52 +03:00
Michael Klishin 12b02276be Remove a debugging trace 2019-12-31 12:04:29 +03:00
Michael Klishin a65bed8293 OTP 21 and 22 compatibility 2019-12-29 20:10:10 +03:00
Michael Klishin 95e9cb627e Ignore xrefr 2019-12-29 19:05:45 +03:00
Michael Klishin ad7f453e44 Migrate away from http_uri for warning-free OTP 23 compatibility
Note: uri_string is only available starting with OTP 21.
2019-12-29 19:03:52 +03:00
Michael Klishin 79141bef7f Pass xref on OTP 23 [master] 2019-12-21 07:32:21 +03:00
Michael Klishin ffa52defd3 Compile on OTP 23 [master] 2019-12-21 07:18:14 +03:00
Jean-Sébastien Pédron 69cd05aa96 Git: Ignore copied CLI 2019-12-12 13:26:01 +01:00
Jean-Sébastien Pédron 8ba891308b Update rabbitmq-components.mk 2019-12-12 13:14:52 +01:00
kjnilsson b66eab630f Update rabbitmq-components.mk 2019-09-13 10:24:15 +01:00
kjnilsson 84425af491 Update rabbitmq-components.mk 2019-09-04 10:30:53 +01:00
Jean-Sébastien Pédron 2c42537e2c Update erlang.mk 2019-08-29 20:44:52 +02:00
Michael Klishin fb5eda5598 Update rabbitmq-components.mk 2019-08-11 01:47:49 +10:00
David Goehrig d611778707 Adding handling for empty objects 2019-08-06 09:06:23 +02:00
Jean-Sébastien Pédron b43daa020a Update erlang.mk 2019-08-02 09:53:35 +02:00
Michael Klishin bd2bd2948d Update rabbitmq-components.mk 2019-08-01 17:13:10 +03:00
Arnaud Cogoluègnes 1aa6f745d3 Update rabbitmq-components.mk 2019-07-09 16:05:51 +02:00
Jean-Sébastien Pédron 852b707d0e Update rabbitmq-components.mk 2019-06-28 16:05:26 +02:00
Jean-Sébastien Pédron 3c25c86034 Update erlang.mk 2019-06-28 16:01:45 +02:00
Gerhard Lazu 22907fefac Update rabbitmq-components.mk 2019-06-03 02:23:32 +01:00
Jean-Sébastien Pédron 5bb13d3dbd Update rabbitmq-components.mk 2019-05-17 15:17:14 +02:00
Michael Klishin a317455abe Update rabbitmq-components.mk 2019-05-17 08:36:26 +03:00
Michael Klishin 84ff371848 Update rabbitmq-components.mk 2019-05-16 23:22:44 +03:00
Michael Klishin 1a4cb4ecc2 Update rabbitmq-components.mk 2019-05-14 11:50:41 +03:00
Michael Klishin 2b12600aa9 Merge branch 'master' into rabbitmq-peer-discovery-aws-25 2019-05-13 20:17:10 +03:00
Michael Klishin 770c80a54f Update rabbitmq-components.mk 2019-05-13 16:40:26 +03:00
Gerhard Lazu e9b11c879f Update rabbitmq-components.mk 2019-05-01 13:18:08 +01:00
Luke Bakken 2399490a56 Update rabbitmq-components.mk 2019-04-30 16:20:54 -07:00
Jean-Sébastien Pédron 93507ceeb0 Update rabbitmq-components.mk 2019-04-30 14:47:26 +02:00
Gerhard Lazu d578d3a4e0 Update rabbitmq-components.mk 2019-04-22 21:55:00 +01:00
Michael Klishin 4d2962d7be Travis: use Erlang 21.3, Elixir 1.8.1 2019-03-20 10:33:12 +03:00
Daniil Fedotov fba7d8116f Rename some types to make it build on 21.3.
ssl_api.hrl does not contain types starting from 21.3.
Use non-existent types instead. This will dyalize, but there is no type
I know of, to fit both old and new types.
2019-03-18 18:29:08 -04:00
Michael Klishin 0a7bb79e42 Update rabbitmq-components.mk 2019-03-15 05:32:48 +03:00
Michael Klishin 2f7b30e10d Update rabbitmq-components.mk 2019-03-15 05:05:38 +03:00
Michael Klishin 1d0f10312f Update rabbitmq-components.mk 2019-02-12 23:23:48 +03:00
Michael Klishin 0b5eda1cda .travis.yml: use 21.2 as 21.2.2 builds are no available 2019-01-14 01:20:18 +03:00
Michael Klishin ee0a093d2b .travis.yml: sync Erlang and Elixir versions, require Erlang/OTP 21.2 2019-01-13 05:49:57 +03:00
Luke Bakken e215ede874 Set connect and request timeouts
httpc:request has a default timeout of infinity. This PR ensures that both the connect and request phase uses a timeout

Part of rabbitmq/rabbitmq-peer-discovery-aws#25
2019-01-11 12:31:07 -08:00
Luke Bakken fc7dd3da84 Update rabbitmq-components.mk 2019-01-09 12:54:56 -08:00
Luke Bakken 79967a65b4 Update rabbitmq-components.mk 2019-01-08 11:58:24 -08:00
Michael Klishin 42cc89db9e Update rabbitmq-components.mk 2018-12-06 18:28:40 +03:00
Michael Klishin cd4e992116 Update rabbitmq-components.mk 2018-12-06 03:15:06 +03:00
Jean-Sébastien Pédron 832b8b6d22 Update rabbitmq-components.mk 2018-11-30 14:56:45 +01:00
Jean-Sébastien Pédron f8c73b653a Update rabbitmq-components.mk 2018-11-22 09:19:31 +01:00
kjnilsson f2966043d7 Update rabbitmq-components.mk 2018-10-29 12:43:15 +00:00
Michael Klishin 96bc073c7b Correct a typo
Primarily to trigger the pipeline to sync newly pushed tags.
2018-10-26 13:24:22 +03:00
Michael Klishin ecc3989407 README updates 2018-10-26 01:32:29 +03:00
Michael Klishin d5463be5e6 Bump EC2 API endpoint request timeout to 10s
100ms is unreasonably low.

Reported in [1]. Per discussion with @lukebakken.

1. https://groups.google.com/d/msg/rabbitmq-users/FyzJpxADz1s/h3U8r2BEBwAJ
2018-10-25 22:50:04 +03:00
Jean-Sébastien Pédron b868e26077 Update rabbitmq-components.mk 2018-09-19 10:38:11 +02:00
Jean-Sébastien Pédron 695867ea60 Update rabbitmq-components.mk 2018-09-11 14:22:24 +02:00
Jean-Sébastien Pédron ca72e64134 Update rabbitmq-components.mk 2018-08-09 17:44:10 +02:00
Jean-Sébastien Pédron 29363168d1 Update rabbitmq-components.mk 2018-08-09 12:16:57 +02:00
Jean-Sébastien Pédron 314b4c6ff4 Update rabbitmq-components.mk 2018-06-07 11:31:32 +02:00
Jean-Sébastien Pédron ace6ea08a0 Update erlang.mk 2018-04-11 10:52:43 +02:00
Jean-Sébastien Pédron 514ce316cb Update rabbitmq-components.mk 2018-04-11 10:51:17 +02:00
Jean-Sébastien Pédron c44f413505 Update rabbitmq-components.mk 2018-04-11 10:09:59 +02:00
Jean-Sébastien Pédron a1f935568c Travis CI: Update config from rabbitmq-common 2018-04-10 13:06:12 +02:00
Michael Klishin 720ba1b463 Compute API endpoint TLD from configured region
Closes #23.

[#155865527]
2018-03-10 02:58:18 +03:00
Jean-Sébastien Pédron 7ba3c82c3c Update erlang.mk 2018-03-02 19:04:19 +01:00
Jean-Sébastien Pédron df33a8822c Update rabbitmq-components.mk 2018-01-30 15:23:31 +01:00
Luke Bakken cf98260aa7 Update rabbitmq-components.mk 2018-01-29 16:22:10 -08:00
Jean-Sébastien Pédron 3ff2ecbcbd Update rabbitmq-components.mk 2018-01-23 17:21:22 +01:00
Jean-Sébastien Pédron 775bab44b6 Update rabbitmq-components.mk 2018-01-23 15:31:12 +01:00
Diana Corbacho 98c884bd2f Update rabbitmq-components.mk 2018-01-22 22:13:18 +00:00
Michael Klishin 0aaf46fb45 Clarify a confusing log message
While at it, introduce a rabbitmq_aws:has_credentials/0 useful for
debugging.

References rabbitmq/rabbitmq-peer-discovery-aws/issues/6.
2017-12-13 21:15:49 +03:00
Jean-Sébastien Pédron 0932175d2a Update rabbitmq-components.mk 2017-12-01 11:06:17 +01:00
Jean-Sébastien Pédron 4a27b57762 Update rabbitmq-components.mk 2017-11-28 14:00:39 +01:00
Jean-Sébastien Pédron d6a9fe2493 Update rabbitmq-components.mk 2017-11-28 13:38:28 +01:00
Jean-Sébastien Pédron 6db9cfdd04 Merge branch 'stable' 2017-10-13 15:05:27 +02:00
Jean-Sébastien Pédron 4581fbab22 Update rabbitmq-components.mk 2017-10-13 14:33:05 +02:00
Jean-Sébastien Pédron 047e5e63c9 Update rabbitmq-components.mk 2017-10-13 14:12:58 +02:00
Jean-Sébastien Pédron e11045f7dd Update rabbitmq-components.mk 2017-10-13 12:15:40 +02:00
Jean-Sébastien Pédron 05c92ea6be rabbitmq_aws_urilib: Replace edoc_uri by http_uri
This allows us to remove the dependency to edoc.

[#151251475]
2017-09-26 17:14:09 +02:00
Jean-Sébastien Pédron 9d7bb11cfa rabbitmq_aws_json: Revert to the old proplist-based API
... instead of using maps.

The problem was that rabbitmq_aws_xml was producing lists too. And
callers still expect lists. So it's easier to only fix the call to
rabbit_json:decode() and convert the result to the previous list format.

[#151251475]
2017-09-26 11:24:58 +02:00
Jean-Sébastien Pédron d3a6bf6cca rabbitmq_aws_config_tests: Replace erlang:now() by erlang:timestamp()
[#151251475]
2017-09-26 11:24:09 +02:00
Jean-Sébastien Pédron c2c6bcaae7 rabbitmq_aws_sign: Use crypto:hmac() directly
... instead of the hmc_init()+hmac_update()+hmac_final().

Furthermore, the use of hmac_update() was wrong because the updated
context was ignored and the initial empty context was passed to
hmac_final().

[#151251475]
2017-09-26 11:22:24 +02:00
Jean-Sébastien Pédron d95af8e84a rabbitmq_aws_sign: Remove support for integers in header's value
The code doesn't produce them, so no need to support and test this case.

[#151251475]
2017-09-26 11:21:25 +02:00
Jean-Sébastien Pédron 94db1b71cb rabbitmq_aws_config: Fix indent of parse_body_response()
[#151251475]
2017-09-26 11:20:06 +02:00
Jean-Sébastien Pédron 770234e690 Fix all -spec()
[#151251475]
2017-09-26 11:18:56 +02:00
Jean-Sébastien Pédron 333f9c4940 rabbitmq_aws: No need to rewrite unchanged record fields
[#151251475]
2017-09-26 11:15:39 +02:00
Jean-Sébastien Pédron fe0ffe45d8 Makefile: Add edoc and xmerl to LOCAL_DEPS
Reported by Dialyzer.

[#151251475]
2017-09-26 11:12:45 +02:00
Jean-Sébastien Pédron 5ace16ebf8 Switch to rabbit_json:decode()
... instead of rabbit_misc:json_decode() which doesn't exist anymore for
several months.

The new function returns a map instead of a proplist. Several modules in
the application and the testsuite are updated to handle those maps.

The testsuite passes again. However, other places may require some
changes to expect maps.
2017-09-20 19:38:36 +02:00
Jean-Sébastien Pédron 448a38bda1 Makefile: Add meck to TEST_DEPS 2017-09-20 19:37:50 +02:00
Jean-Sébastien Pédron 071ab54120 Merge branch 'stable' 2017-09-20 12:05:11 +02:00
Jean-Sébastien Pédron df846deb2c Remove build.config to use default Erlang.mk content
The copy of `erlang.mk` doesn't change after that because we were
already using the same `build.config`.
2017-09-20 12:04:02 +02:00
Michael Klishin 5cbed3296b Update rabbitmq-components.mk 2017-09-13 17:54:09 -04:00
Michael Klishin be5d7095ff Update rabbitmq-components.mk 2017-09-13 17:45:25 -04:00
Michael Klishin 3f0476ad51 Update rabbitmq-components.mk 2017-09-12 12:41:46 -04:00
Daniil Fedotov 7cd54ff63b Merge branch 'stable' 2017-09-12 10:01:11 +01:00
Daniil Fedotov e1fbb75a89 Fix fetch-deps.
Add rabbit_common to BUILD_DEPS, because it is used to build an app
2017-08-31 11:09:21 +01:00
Daniil Fedotov 5eabf0da14 Fix fetch-deps.
Add rabbit_common to BUILD_DEPS, because it is used to build the app
2017-08-31 11:07:37 +01:00
Daniil Fedotov 9a92466c0c Merge branch 'stable' 2017-08-30 19:20:18 +01:00
Daniil Fedotov 791545c1cd Update erlang.mk 2017-08-30 18:46:44 +01:00
Michael Klishin 1fd1dcc7e0 Erlang/OTP 19.2 is now the minimum supported version.
Part of rabbitmq/rabbitmq-server#1305.

[#149563549]
2017-07-26 19:02:42 +03:00
Michael Klishin c685cd7855 Update rabbitmq-components.mk 2017-07-26 03:48:17 +03:00
Michael Klishin 7b333494b7 Update rabbitmq-components.mk 2017-07-26 02:48:14 +03:00
Michael Klishin 289832ad04 Update rabbitmq-components.mk 2017-07-26 02:27:01 +03:00
Michael Klishin 22e8b520b9 Update rabbitmq-components.mk 2017-06-12 18:35:35 +03:00
Michael Klishin b8b42cb9db Update rabbitmq-components.mk 2017-06-02 17:51:23 +03:00
Michael Klishin afa09314d6 Sync erlang.mk with rabbit_common 2017-05-24 17:17:26 +03:00
Diana Corbacho 2de17d5b21 Initialise credentials on demand
Avoids requesting AWS credentials when the AWS backend is not used and
only included as a dependency
2017-05-22 12:11:07 +01:00
Diana Corbacho ea6f7a80d9 Add local deps 2017-04-12 15:06:33 +01:00
Michael Klishin a85c315277 Use Make variables to produce application descriptor
Like we do in other projects, including (now) rabbitmq/rabbitmq-autocluster.
2017-04-11 19:23:45 +03:00
Diana Corbacho 3932c15c17 Handle response errors
Related to aweber/rabbitmq-autocluster#104
2017-04-10 12:17:24 +01:00
Diana Corbacho dad1edbed6 Handle URIs without fragments
Reported in aweber/rabbitmq-autocluster#104
2017-04-10 12:16:34 +01:00
Diana Corbacho 55df8a99fa Flatten text lists
* Strings that contain <> in XML text are split in several xmlText elements
  which failed to flatten

aweber/rabbitmq-autocluster#124
[#142676591]
2017-03-29 11:36:04 +01:00
Gavin M. Roy b6d5825c54 Bump the version 2016-08-01 10:24:36 -04:00
Alexey Lebedeff 4794f65462 Updated rabbitmq-components.mk
Otherwise travis builds fails
2016-07-29 19:37:13 +03:00
Alexey Lebedeff 44195b7264 Fix some type specs
I've touched only those types as I'm trying to make dialyzer completely happy
with `rabbitmq_autocluster`.
2016-07-29 19:29:08 +03:00
Gavin M. Roy 760abacaa4 Dont rely on edoc_lib 2016-05-23 23:55:20 -04:00
Gavin M. Roy 474c69c4a7 Merge branch 'master' of github.com:gmr/rabbitmq-aws 2016-05-23 21:17:15 -04:00
Gavin M. Roy 1f6f6e9bf7 Fix query arg encoding 2016-05-23 21:17:00 -04:00
Gavin M. Roy 095d2a28c9 Update README.md 2016-05-19 20:54:22 -04:00
Gavin M. Roy 1136ed35d5 Remove rebar3, etc, not needed 2016-05-19 20:45:29 -04:00
Gavin M. Roy e1f3765c14 update travis config 2016-05-19 20:38:56 -04:00
Gavin M. Roy 71e52fb874 Dont crash on startup when region cant be loaded 2016-05-19 20:35:09 -04:00
Gavin M. Roy 53cfaf49e4 Travis updates 2016-05-19 19:51:51 -04:00
Gavin M. Roy 388eae36b6 Get the build/test working 2016-05-19 19:40:33 -04:00
Gavin M. Roy 08d1f6a5a9 WIP first change after renaming all the things 2016-05-19 17:04:53 -04:00
Gavin M. Roy daecdfe2cf Update rebar3 & config for hex 2016-05-19 16:41:01 -04:00
Gavin M. Roy 304da8a9fa Fix the packaging info 2016-05-19 16:27:30 -04:00
Gavin M. Roy 8a382179df Update the tagline 2016-05-19 16:20:37 -04:00
Gavin M. Roy 45cdfef96d Add minimal API documentation to the README 2016-05-19 16:19:29 -04:00
Gavin M. Roy ccffab5051 Increase coverage to include handle_call/3 2016-05-19 15:51:37 -04:00
Gavin M. Roy 851a0f0cbe Update information about the ordering precedence 2016-05-19 15:34:21 -04:00
Gavin M. Roy ccca6f901d Implement the full request logic 2016-05-19 15:34:03 -04:00
Gavin M. Roy a75d224306 Return the parsed expiration timestamp 2016-05-19 15:32:05 -04:00
Gavin M. Roy 8d646f0e88 Add another error response format 2016-05-19 15:31:45 -04:00
Gavin M. Roy ea13561798 Increate httpc_aws test coverage 2016-05-17 16:48:43 -04:00
Gavin M. Roy 424d6a0669 Unused functions/code paths 2016-05-17 16:42:19 -04:00
Gavin M. Roy eac8113cfa Correctly handle single node XML as well 2016-05-17 16:27:25 -04:00
Gavin M. Roy 723bcdcb75 Increase JSON conversation coverage 2016-05-17 14:39:43 -04:00
Gavin M. Roy 9708fb23c8 Increase test coverage 2016-05-17 14:36:33 -04:00
Gavin M. Roy eec30f0e9d Ignore ContentType in this function 2016-05-17 14:36:26 -04:00
Gavin M. Roy 2d54ff562e See if we can get 18.3 coverage 2016-05-17 14:26:04 -04:00
Gavin M. Roy b438963efc Increase test coverage and documentation of httpc_aws 2016-05-17 14:25:11 -04:00
Gavin M. Roy f0d64cb8e5 Move tests from binary() strings to string()s 2016-05-17 14:11:26 -04:00
Gavin M. Roy cddc055889 Use httpc_aws_json:decode/1 2016-05-17 14:10:17 -04:00
Gavin M. Roy 613c55bced Remove binary conversion 2016-05-17 14:10:00 -04:00
Gavin M. Roy 0604eec73b Break out JSON parsing 2016-05-17 14:09:48 -04:00