Bug 1281821 - Rename PULSE_URI -> PULSE_URL to match other config vars

This commit is contained in:
George Hickman 2018-08-01 16:33:02 +01:00 коммит произвёл George Hickman
Родитель cc4bfa47f6
Коммит 6e7b1efac3
6 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -14,7 +14,7 @@ The Simple Case
If you just want to get the same data that Treeherder gets, then you have 3 steps:
1. Create a user on [Pulse Guardian] if you don't already have one
2. Create your ``PULSE_URI`` string
2. Create your ``PULSE_URL`` string
3. Open a Vagrant terminal to read Pushes
4. Open a Vagrant terminal to read Jobs
5. Open a Vagrant terminal to run **Celery**
@ -34,7 +34,7 @@ If your **Pulse User** was username: ``foo`` and password: ``bar``, your config
string would be:
```bash
PULSE_URI="amqp://foo:bar@pulse.mozilla.org:5671/?ssl=1"
PULSE_URL="amqp://foo:bar@pulse.mozilla.org:5671/?ssl=1"
```
@ -47,7 +47,7 @@ PULSE_URI="amqp://foo:bar@pulse.mozilla.org:5671/?ssl=1"
``ssh`` into Vagrant, then set your config environment variable:
```bash
export PULSE_URI="amqp://foo:bar@pulse.mozilla.org:5671/?ssl=1"
export PULSE_URL="amqp://foo:bar@pulse.mozilla.org:5671/?ssl=1"
```
Next, run the Treeherder management command to read Pushes from the default **Pulse**
@ -65,7 +65,7 @@ ingested in step 5.
### 4. Read Jobs
As in step 3, open a Vagrant terminal and export your ``PULSE_URI``
As in step 3, open a Vagrant terminal and export your ``PULSE_URL``
variable. Then run the following management command:
```bash

Просмотреть файл

@ -346,7 +346,7 @@ def pulse_consumer(exchange, request):
exchange
)
connection = kombu.Connection(settings.PULSE_URI)
connection = kombu.Connection(settings.PULSE_URL)
exchange = kombu.Exchange(
name=exchange_name,

Просмотреть файл

@ -10,7 +10,7 @@ CELERY_ALWAYS_EAGER = True
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
# Reconfigure pulse to operate on default vhost of rabbitmq
PULSE_URI = BROKER_URL
PULSE_URL = BROKER_URL
PULSE_EXCHANGE_NAMESPACE = 'test'
# Set a fake api key for testing bug filing

Просмотреть файл

@ -494,8 +494,8 @@ PERFHERDER_ALERTS_FORE_WINDOW = 12
PERFHERDER_ALERTS_MAX_AGE = timedelta(weeks=2)
# Pulse
# The pulse uri that is passed to kombu
PULSE_URI = env("PULSE_URI", default="amqps://guest:guest@pulse.mozilla.org/")
# The pulse url that is passed to kombu
PULSE_URL = env("PULSE_URL", default="amqps://guest:guest@pulse.mozilla.org/")
# Note we will never publish any pulse messages unless the exchange namespace is
# set this normally is your pulse username.

Просмотреть файл

@ -32,7 +32,7 @@ class LazyPublisher(object):
if not self.publisher and settings.PULSE_EXCHANGE_NAMESPACE:
self.publisher = TreeherderPublisher(
namespace=settings.PULSE_EXCHANGE_NAMESPACE,
uri=settings.PULSE_URI,
uri=settings.PULSE_URL,
schemas=PULSE_SCHEMAS
)

Просмотреть файл

@ -7,7 +7,7 @@ env = environ.Env()
# ingestion queues for the exchanges specified in ``PULSE_DATA_INGESTION_SOURCES``.
# See https://pulse.mozilla.org/whats_pulse for more info.
# Example: "amqp://myuserid:mypassword@pulse.mozilla.org:5672/?ssl=1"
config = env.url("PULSE_URI")
config = env.url("PULSE_URL")
def build_connection(url):