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)

x86
macOS
defect
Not set
normal

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: nobody → jlal
Status: NEW → ASSIGNED
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 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+
Note, to self: "exchangePrefix" should probably be turned into "namespace", and not include the "exchange/" part, but have that automatically prefixed.
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+
> 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.
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
Component: TaskCluster → General
Product: Testing → Taskcluster
Target Milestone: --- → mozilla41
Version: unspecified → Trunk
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.

Attachment

General

Created:
Updated:
Size: