Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
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
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
98905aa2
Commit
98905aa2
authored
11 years ago
by
Steve Holme
Browse files
Options
Downloads
Patches
Plain Diff
tests: Added SMTP OAUTH2 authentication test
parent
820ed48a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/data/Makefile.am
+1
-1
1 addition, 1 deletion
tests/data/Makefile.am
tests/data/test908
+55
-0
55 additions, 0 deletions
tests/data/test908
with
56 additions
and
1 deletion
tests/data/Makefile.am
+
1
−
1
View file @
98905aa2
...
...
@@ -70,7 +70,7 @@ test850 test851 test852 test853 test854 test855 test856 test857 test858 \
test859 test860 test861 test862 test863 test864 test865 test866 test867
\
test868 test869 test870
\
\
test900 test901 test902 test903 test904 test905 test906 test907
\
test900 test901 test902 test903 test904 test905 test906 test907
test908
\
test909 test910 test911 test912 test913 test914 test915 test916 test917
\
test918 test919 test920
\
\
...
...
This diff is collapsed.
Click to expand it.
tests/data/test908
0 → 100644
+
55
−
0
View file @
98905aa2
<testcase>
<info>
<keywords>
SMTP
SMTP AUTH OAUTH2
RFC4954
RFC6749
</keywords>
</info>
#
# Server-side
<reply>
<servercmd>
AUTH XOAUTH2
REPLY AUTH 334 XOAUTH2 supported
REPLY dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB 235 Authenticated
</servercmd>
</reply>
#
# Client-side
<client>
<server>
smtp
</server>
<name>
SMTP OAUTH2 authentication
</name>
<stdin>
mail body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/908 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user --oauth2-bearer mF_9.B5f-4.1JqM -T -
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
EHLO 908
AUTH XOAUTH2
dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB
MAIL FROM:<sender@example.com>
RCPT TO:<recipient@example.com>
DATA
QUIT
</protocol>
<upload>
mail body
.
</upload>
</verify>
</testcase>
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