Closed
Bug 1139279
Opened 11 years ago
Closed 11 years ago
taskcluster-client: Allow specifying connection string in pulse listener instead of user/pass
Categories
(Taskcluster :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jlal, Assigned: jlal)
Details
Attachments
(2 files)
In some situations it would be nice to just specify connection string (particularly when testing amqp stuff locally). We currently have the hostname option but I don't really want to specify three configs. This is somewhat more complicated in my case as I want a mix of pulse and local docker amqp setup.
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jlal
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8572478 -
Flags: review?(jopsen)
Comment 2•11 years ago
|
||
Basically be explicite about the `namespace`. And don't parse it if loading from connectionString.
This is pretty much details. I'll think this in when we write pulse client into something more generic... It's far down my todo, but it's there.
Attachment #8573034 -
Flags: review?(jlal)
Comment 3•11 years ago
|
||
Comment on attachment 8572478 [details]
https://github.com/taskcluster/taskcluster-client/pull/14/files
We could totally merge this, I'm not strongly opposed, just suggesting an alternative.
As mentioned before I'm not even sure about how this will look in the future.
Btw, I use real when testing locally, there is a reason why QueueEvents let's
you overwrite `exchangePrefix`.
Ie:
new taskcluster.QueueEvents({exchangePrefix: 'exchange/my-fake-queue-user/'});
If I'm creating a fake queue with pulse user "my-fake-queue-user".
Attachment #8572478 -
Flags: review?(jopsen) → review+
Comment 4•11 years ago
|
||
Note, to self:
"exchangePrefix" should probably be turned into "namespace", and not include the "exchange/" part, but have that automatically prefixed.
| Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 8573034 [details] [review]
Github PR with explicit namespace
I am fine with this approach too but in general I don't really like object properties in configs which either override each other or are mutually exclusive (which is why I chose to clobber it with a string OR object).
Another potential thing would be to move "namespace" out of credentials ?
Attachment #8573034 -
Flags: review?(jlal) → review+
Comment 6•11 years ago
|
||
> Another potential thing would be to move "namespace" out of credentials ?
Namespace is inherently coupled with credentials in pulse. And ought to be in any AMQP deployment.
I don't like properties that overwrite, each other either... being mutually exclusive I can better live with, then we can raise an error instead of having weird behaviour.
Will check that username/password/hostname isn't provided along with `connectionString` and land this.
Comment 7•11 years ago
|
||
Merged... Will publish nowish, as we change the username property to namespace, we'll likley need to a major version number bump...
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Component: TaskCluster → General
Product: Testing → Taskcluster
Target Milestone: --- → mozilla41
Version: unspecified → Trunk
Comment 8•10 years ago
|
||
Resetting Version and Target Milestone that accidentally got changed...
Target Milestone: mozilla41 → ---
Version: Trunk → unspecified
You need to log in
before you can comment on or make changes to this bug.
Description
•