Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
5e59c109
Commit
5e59c109
authored
4 years ago
by
Jen Plank
Browse files
Options
Downloads
Patches
Plain Diff
changed test to not email me.
parent
e3c47a28
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!63
changed test to not email me.
Pipeline
#445
passed
4 years ago
Stage: build-dev
Stage: unit-test-dev
Stage: push-dev
Stage: clean-images
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/notification/test/test_notifications.py
+2
-2
2 additions, 2 deletions
services/notification/test/test_notifications.py
with
2 additions
and
2 deletions
services/notification/test/test_notifications.py
+
2
−
2
View file @
5e59c109
...
...
@@ -35,7 +35,7 @@ def test_send_email():
url
=
'
http://localhost:3458/notify/email/send
'
headers
=
{
'
content-type
'
:
'
application/json
'
,
'
Accept-Charset
'
:
'
UTF-8
'
,
'
subject
'
:
'
testing
'
}
json_packet
=
{
"
destination_email
"
:
"
jplank
@nrao.edu
"
,
"
subject
"
:
"
first thing
"
,
"
message
"
:
"
second thing
"
}
json_packet
=
{
"
destination_email
"
:
"
your-email
@nrao.edu
"
,
"
subject
"
:
"
first thing
"
,
"
message
"
:
"
second thing
"
}
r
=
requests
.
post
(
url
,
headers
=
headers
,
json
=
json_packet
)
print
(
r
)
...
...
@@ -50,7 +50,7 @@ def test_bad_template_name():
url
=
'
http://localhost:3458/notify/nonsense/send
'
headers
=
{
'
content-type
'
:
'
application/json
'
,
'
Accept-Charset
'
:
'
UTF-8
'
,
'
subject
'
:
'
testing
'
}
json_packet
=
{
"
destination_email
"
:
"
jplank
@nrao.edu
"
,
"
stuff
"
:
"
first thing
"
,
"
more
"
:
"
second thing
"
}
json_packet
=
{
"
destination_email
"
:
"
your-email
@nrao.edu
"
,
"
stuff
"
:
"
first thing
"
,
"
more
"
:
"
second thing
"
}
r
=
requests
.
post
(
url
,
headers
=
headers
,
json
=
json_packet
)
print
(
r
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment