-
Notifications
You must be signed in to change notification settings - Fork 89
Vhost parameter added. #527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thaks for your contribution @sergiorb ! |
|
LGTM |
Co-authored-by: Fermín Galán Márquez <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Hello @AlvaroVega @fgalan and sorry for the delay. I've updated the branch with some test that needs a specially set-up RabbitMQ to run due to the creation of the virtual host is not possible from the amqplib library. May you check that out? I'll replicate the changes in Iotagent-ul repo as soon as you validate this one. Thanks in advance. |
| @@ -0,0 +1,223 @@ | |||
| /* | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of -test3.js it would be better a more meaningful suffix, according to the kind of test cases included in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe test/unit/amqpBinding-vhost-test.js ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I just followed what I found there. Name it as you like.
Co-authored-by: Fermín Galán Márquez <[email protected]>
| @@ -0,0 +1,223 @@ | |||
| /* | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test/unit/amqpBinding-vhost-test.js.js -> test/unit/amqpBinding-vhost-test.js
Too much "js" at the end ;)
|
LGTM. Thanks! We will merge once you can address the following, please:
With regards to README.md, maybe we will do some refactor of the documentation of your contribution but with regards this PR is fine. |
| - Fix: avoid raise mongo alarm when a measure is not maching a group configuration | ||
| - Upgrade NodeJS version from 10 to 12 in Dockerfile due to Node 10 End-of-Life | ||
| - Set Nodejs 12 as minimum version in packages.json (effectively removing Nodev10 from supported versions) | ||
| - Add list of environment variables which can be protected by Docker Secrets | ||
| - Fix: avoid raise mongo alarm when a measure is not maching a group configuration | ||
| - Fix: Set 60 seconds for default mqtt keepalive option (#413) | ||
| - Upgrade NodeJS version from 10 to 12 in Dockerfile due to Node 10 End-of-Life | ||
| - Set Nodejs 12 as minimum version in packages.json (effectively removing Nodev10 from supported versions) | ||
| - Add: Support of multimeasure for MQTT and AMQP transport (#462) | ||
| - Add: virtual host configuration added to AMQP transport (config.amqp.vhost and IOTA_AMQP_VHOST env var) | ||
| - Add list of environment variables which can be protected by Docker Secrets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the conflict in CHANGES_NEXT_RELEASE has been correctly solved...
CHANGES_NEXT_RELEASE at this PR branch should contain the current entries in master (i.e. https://github.com/telefonicaid/iotagent-json/blob/master/CHANGES_NEXT_RELEASE) plus the line associated to this PR (i.e. - Add: virtual host configuration added to AMQP transport (config.amqp.vhost and IOTA_AMQP_VHOST env var)).
|
Hello @fgalan and thank you for your feedback. I've updated the |
|
Could you have a look to the tests run in GitActions, please? It seems many of them are failing... |
I've been working on them and I cannot find a way to mount the definitions file as volume without breaking the pipeline. It seems that On the other hand, I've run master-branch's tests locally and they fail too, mainly due to ContextBroker issues. Could you take a look on that? Thanks. |
After careful examination, this is not fully true... The tests were ok in master when I look at it (the screenshot is correct) but I have re-run the tests in master and they have failed. This may be caused due to two reasons:
We are analyzing it. CC: @AlvaroVega |
At the end, it was due to iotagent-node-lib. Some changes on that library make some test to be "unaligned". It has been already fixed in master (by PR #550). Thus, could you please update this PR brach con master. After that I guess that all your changes in ci.yml in this PR are not needed and can be reverted. Remember also to remove packages-lock.json from the PR. Thanks! |
|
@sromerotech could you explain why this PR has been closed, please? Do you plan to re-create it? Thanks! |

I've added the vhost parameter so you can customize it. I'll appreciate any feedback on this PR. Thanks in advance.