1
- @AuthFeature
1
+ @AuthenticationFeature
2
2
Feature : Authentication test
3
3
4
- @AuthCheckSecurityScenario
4
+ @AuthenticationCheckSecurityScenario
5
5
Scenario : Check security
6
6
Given frontend is up and running
7
- When a 'GET' request is prepared for REST API '/auth '
7
+ When a 'GET' request is prepared for REST API '/authentication '
8
8
And request is sent
9
9
Then response code 200 is received
10
10
And response body '{"security":true}' is received
11
11
12
- @AuthMultipleUsersLoginAndLogoutScenario
12
+ @AuthenticationMultipleUsersLoginAndLogoutScenario
13
13
Scenario : Multiple Users Login And Logout test
14
14
Given frontend is up and running
15
15
16
16
# Action: First user logging in
17
- When a 'GET' request is prepared for REST API '/auth /login'
17
+ When a 'GET' request is prepared for REST API '/authentication /login'
18
18
And username "gauss" and password "password" is used as credentials
19
19
Then request is saved to request list at index 0
20
20
When request is performed from request list at index 0
@@ -23,7 +23,7 @@ Feature: Authentication test
23
23
And remove 'Authorization' from request headers at list index 0
24
24
25
25
# Action: Second user logging in
26
- When a 'GET' request is prepared for REST API '/auth /login'
26
+ When a 'GET' request is prepared for REST API '/authentication /login'
27
27
And username "newton" and password "password" is used as credentials
28
28
Then request is saved to request list at index 1
29
29
When request is performed from request list at index 1
@@ -37,7 +37,7 @@ Feature: Authentication test
37
37
And response body '{"user":"gauss"}' is received
38
38
39
39
# Action: First user logging out
40
- When '/auth /logout' endpoint is set in request list at index 0
40
+ When '/authentication /logout' endpoint is set in request list at index 0
41
41
And request is performed from request list at index 0
42
42
Then response code 204 is received
43
43
@@ -47,17 +47,17 @@ Feature: Authentication test
47
47
And response body '{"user":"newton"}' is received
48
48
49
49
# Check: First user proved logged out
50
- When '/auth /login' endpoint is set in request list at index 0
50
+ When '/authentication /login' endpoint is set in request list at index 0
51
51
And request is performed from request list at index 0
52
52
Then response code 401 is received
53
53
54
54
# Action: Second user logging out
55
- When '/auth /logout' endpoint is set in request list at index 1
55
+ When '/authentication /logout' endpoint is set in request list at index 1
56
56
And request is performed from request list at index 1
57
57
Then response code 204 is received
58
58
59
59
# Check: Second user proved logged out
60
- When '/auth /login' endpoint is set in request list at index 1
60
+ When '/authentication /login' endpoint is set in request list at index 1
61
61
And request is performed from request list at index 1
62
62
Then response code 401 is received
63
63
@@ -66,62 +66,62 @@ Feature: Authentication test
66
66
Given frontend is up and running
67
67
68
68
# Invalid Username
69
- When a 'GET' request is prepared for REST API '/auth /login'
69
+ When a 'GET' request is prepared for REST API '/authentication /login'
70
70
And username "invalid_username" and password "password" is used as credentials
71
71
And request is sent
72
72
Then response code 401 is received
73
73
74
74
# Invalid Password
75
- When a 'GET' request is prepared for REST API '/auth /login'
75
+ When a 'GET' request is prepared for REST API '/authentication /login'
76
76
And username "gauss" and password "invalid_password" is used as credentials
77
77
And request is sent
78
78
Then response code 401 is received
79
79
80
80
@AuthUniqueUsersInDifferentLDAPServers
81
81
Scenario : Login using unique users from two different LDAP servers
82
82
# Action: First user logging in on first LDAP
83
- When a 'GET' request is prepared for REST API '/auth /login'
83
+ When a 'GET' request is prepared for REST API '/authentication /login'
84
84
And username "gauss" and password "password" is used as credentials
85
85
Then request is saved to request list at index 0
86
86
When request is performed from request list at index 0
87
87
Then response code 200 is received
88
88
And response body '{"user":"gauss"}' is received
89
89
90
90
# Action: First user logging out
91
- When '/auth /logout' endpoint is set in request list at index 0
91
+ When '/authentication /logout' endpoint is set in request list at index 0
92
92
And request is performed from request list at index 0
93
93
Then response code 204 is received
94
94
95
95
# Action: Second user logging in on second LDAP
96
- When a 'GET' request is prepared for REST API '/auth /login'
96
+ When a 'GET' request is prepared for REST API '/authentication /login'
97
97
And username "einstein" and password "e=mc2" is used as credentials
98
98
Then request is saved to request list at index 0
99
99
When request is performed from request list at index 0
100
100
Then response code 200 is received
101
101
And response body '{"user":"einstein"}' is received
102
102
103
103
# Action: Second user logging out
104
- When '/auth /logout' endpoint is set in request list at index 0
104
+ When '/authentication /logout' endpoint is set in request list at index 0
105
105
And request is performed from request list at index 0
106
106
Then response code 204 is received
107
107
108
108
@AuthIdenticalUsernamesInDifferentLDAPServers
109
109
Scenario : Login using identical usernames with different passwords from two different LDAP servers
110
110
# Action: User logging in on first LDAP
111
- When a 'GET' request is prepared for REST API '/auth /login'
111
+ When a 'GET' request is prepared for REST API '/authentication /login'
112
112
And username "newton" and password "password" is used as credentials
113
113
Then request is saved to request list at index 0
114
114
When request is performed from request list at index 0
115
115
Then response code 200 is received
116
116
And response body '{"user":"newton"}' is received
117
117
118
118
# Action: User logging out
119
- When '/auth /logout' endpoint is set in request list at index 0
119
+ When '/authentication /logout' endpoint is set in request list at index 0
120
120
And request is performed from request list at index 0
121
121
Then response code 204 is received
122
122
123
123
# Action: User logging in on second LDAP
124
- When a 'GET' request is prepared for REST API '/auth /login'
124
+ When a 'GET' request is prepared for REST API '/authentication /login'
125
125
And username "newton" and password "password2" is used as credentials
126
126
Then request is saved to request list at index 0
127
127
When request is performed from request list at index 0
0 commit comments