PagerDuty Integration Key is 32 characters long. Update screenshots.

This commit is contained in:
Pēteris Caune 2016-10-30 14:24:36 +02:00
parent d019ebc195
commit dfa0af350a
5 changed files with 9 additions and 6 deletions

View File

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

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -42,7 +42,7 @@
<div class="col-sm-6"> <div class="col-sm-6">
<span class="step-no">2</span> <span class="step-no">2</span>
After adding the new service, take note of its 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. of letters and digits.
</div> </div>
@ -57,7 +57,7 @@
<div class="row ai-step"> <div class="row ai-step">
<div class="col-sm-6"> <div class="col-sm-6">
<span class="step-no">3</span> <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>
</div> </div>
@ -66,8 +66,8 @@
<form method="post" class="form-horizontal" action="{% url 'hc-add-pd' %}"> <form method="post" class="form-horizontal" action="{% url 'hc-add-pd' %}">
{% csrf_token %} {% csrf_token %}
<div class="form-group {{ form.value.css_classes }}"> <div class="form-group {{ form.value.css_classes }}">
<label for="api-key" class="col-sm-2 control-label">API Key</label> <label for="api-key" class="col-sm-2 control-label">Integration Key</label>
<div class="col-sm-3"> <div class="col-sm-4">
<input <input
id="api-key" id="api-key"
type="text" type="text"