You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for new authentication type BASIC_AUTH_JENKINS_CSRF (#294)
NON BACKWARDS COMPATIBLE CHANGES!
* Add support for new authentication type BASIC_AUTH_JENKINS_CSRF
- EI now fetches Jenkins crumb only when BASIC_AUTH_JENKINS_CSRF
is used.
- Better error handling caused by failure to connect to rest services
Given subscription object for "REST/POST" with name "ParameterizedTriggerSubscription" is created
25
25
When notification meta "http://${jenkinsHost}:${jenkinsPort}/job/${jenkinsJobName}/buildWithParameters?token='test-token-123'&test_key=id" is set in subscription
26
-
And basic_auth authentication with username "admin" and password "admin" is set in subscription
26
+
And "BASIC_AUTH_JENKINS_CSRF" authentication with username "admin" and password "admin" is set in subscription
27
27
And rest post body media type is set to "application/x-www-form-urlencoded" is set in subscription
28
28
And condition "id=='sb6efi4n-25fb-4d77-b9fd-5f2xrrefe66de47'" at requirement index '0' is added in subscription
Given subscription object for "REST/POST" with name "ParameterInBodyTriggerSubscription" is created
62
62
When notification meta "http://${jenkinsHost}:${jenkinsPort}/job/${jenkinsJobName}/build?token='test-token-123'" is set in subscription
63
-
And basic_auth authentication with username "admin" and password "admin" is set in subscription
63
+
And "BASIC_AUTH_JENKINS_CSRF" authentication with username "admin" and password "admin" is set in subscription
64
64
And rest post body media type is set to "application/x-www-form-urlencoded" is set in subscription
65
65
And parameter form key "json" and form value "{parameter: [{name:'test_param_1', value:'Test Input Value'}, {name:'test_param_2', value:id}]}" is added in subscription
66
66
And condition "id=='sb6efi4n-25fb-4d77-b9fd-5f2xrrefe66de47'" at requirement index '0' is added in subscription
Copy file name to clipboardExpand all lines: src/integrationtests/resources/features/TestExecutionFlowIT.feature
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Feature: Test execution flow integrationtest
23
23
# Setup subscription
24
24
Given subscription object for "REST/POST" with name "ParameterizedTriggerSubscription" is created
25
25
When notification meta "http://${jenkinsHost}:${jenkinsPort}/job/${jenkinsJobName}/buildWithParameters?token='test-token-123'&test_key=activity_triggered_event_id" is set in subscription
26
-
And basic_auth authentication with username "admin" and password "admin" is set in subscription
26
+
And "BASIC_AUTH_JENKINS_CSRF" authentication with username "admin" and password "admin" is set in subscription
27
27
And rest post body media type is set to "application/x-www-form-urlencoded" is set in subscription
28
28
And condition "activity_triggered_event_id=='e46ef12d-25gb-4d7y-b9fd-8763re66de47'" at requirement index '0' is added in subscription
29
29
Then subscription is uploaded
@@ -58,7 +58,7 @@ Feature: Test execution flow integrationtest
58
58
# Setup subscription
59
59
Given subscription object for "REST/POST" with name "ParameterInBodyTriggerSubscription" is created
60
60
When notification meta "http://${jenkinsHost}:${jenkinsPort}/job/${jenkinsJobName}/build?token='test-token-123'" is set in subscription
61
-
And basic_auth authentication with username "admin" and password "admin" is set in subscription
61
+
And "BASIC_AUTH_JENKINS_CSRF" authentication with username "admin" and password "admin" is set in subscription
62
62
And rest post body media type is set to "application/x-www-form-urlencoded" is set in subscription
63
63
And parameter form key "json" and form value "{parameter: [{name:'test_param_1', value:'test_value'}, {name:'test_param_2', value:activity_triggered_event_id}]}" is added in subscription
64
64
And condition "activity_triggered_event_id=='e46ef12d-25gb-4d7y-b9fd-8763re66de47'" at requirement index '0' is added in subscription
0 commit comments