Browse Source

PagerDuty Integration Key is 32 characters long. Update screenshots.

pull/109/head
Pēteris Caune 8 years ago
parent
commit
dfa0af350a
5 changed files with 9 additions and 6 deletions
  1. +3
    -1
      hc/front/forms.py
  2. +2
    -1
      hc/front/tests/test_add_pd.py
  3. BIN
      static/img/integrations/setup_pd_1.png
  4. BIN
      static/img/integrations/setup_pd_2.png
  5. +4
    -4
      templates/integrations/add_pd.html

+ 3
- 1
hc/front/forms.py View File

@ -36,12 +36,14 @@ class AddChannelForm(forms.ModelForm):
class AddPdForm(forms.Form):
error_css_class = "has-error"
value = forms.CharField(max_length=20)
value = forms.CharField(max_length=32)
class AddOpsGenieForm(forms.Form):
error_css_class = "has-error"
value = forms.CharField(max_length=40)
class AddEmailForm(forms.Form):
error_css_class = "has-error"
value = forms.EmailField(max_length=100)


+ 2
- 1
hc/front/tests/test_add_pd.py View File

@ -11,7 +11,8 @@ class AddPdTestCase(BaseTestCase):
self.assertContains(r, "incident management system")
def test_it_works(self):
form = {"value": "123456"}
# Integration key is 32 characters long
form = {"value": "12345678901234567890123456789012"}
self.client.login(username="[email protected]", password="password")
r = self.client.post(self.url, form)


BIN
static/img/integrations/setup_pd_1.png View File

Before After
Width: 577  |  Height: 445  |  Size: 47 KiB Width: 635  |  Height: 659  |  Size: 67 KiB

BIN
static/img/integrations/setup_pd_2.png View File

Before After
Width: 585  |  Height: 313  |  Size: 36 KiB Width: 679  |  Height: 261  |  Size: 25 KiB

+ 4
- 4
templates/integrations/add_pd.html View File

@ -42,7 +42,7 @@
<div class="col-sm-6">
<span class="step-no">2</span>
After adding the new service, take note of its
<strong>API key</strong>, a long string
<strong>Integration Key</strong>, a long string
of letters and digits.
</div>
@ -57,7 +57,7 @@
<div class="row ai-step">
<div class="col-sm-6">
<span class="step-no">3</span>
<p>Paste the API key down below. Save the integration, and it's done!</p>
<p>Paste the Integration Key down below. Save the integration, and it's done!</p>
</div>
</div>
@ -66,8 +66,8 @@
<form method="post" class="form-horizontal" action="{% url 'hc-add-pd' %}">
{% csrf_token %}
<div class="form-group {{ form.value.css_classes }}">
<label for="api-key" class="col-sm-2 control-label">API Key</label>
<div class="col-sm-3">
<label for="api-key" class="col-sm-2 control-label">Integration Key</label>
<div class="col-sm-4">
<input
id="api-key"
type="text"


Loading…
Cancel
Save