forked from GithubBackups/healthchecks
PagerDuty Integration Key is 32 characters long. Update screenshots.
This commit is contained in:
parent
d019ebc195
commit
dfa0af350a
@ -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)
|
||||
|
@ -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="alice@example.org", password="password")
|
||||
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 |
@ -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…
x
Reference in New Issue
Block a user