Skip to content

Commit

Permalink
Merge pull request eclipse#3865 from Agnul97/fix-wrongWrittenTests
Browse files Browse the repository at this point in the history
FIX - Fixed some wrong written tests
  • Loading branch information
Coduz authored Sep 19, 2023
2 parents a3e45b0 + 743735b commit f778f7f
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ Feature: Account Credential Service Integration Tests
Then I logout
Given I expect the exception "KapuaAuthenticationException" with the text "*"
When I login as user with name "user1" and password "wrongpassword"
Given I expect the exception "KapuaAuthenticationException" with the text "*"
Then An exception was thrown
When I login as user with name "user1" and password "wrongpassword"
Given I expect the exception "KapuaAuthenticationException" with the text "*"
Then An exception was thrown
When I login as user with name "user1" and password "ToManySecrets123#"
Then An exception was thrown
Then I wait 5 seconds
Expand Down Expand Up @@ -372,8 +372,9 @@ Feature: Account Credential Service Integration Tests
Then I logout
Given I expect the exception "KapuaAuthenticationException" with the text "*"
When I login as user with name "user1" and password "wrongpassword"
Given I expect the exception "KapuaAuthenticationException" with the text "*"
Then An exception was thrown
When I login as user with name "user1" and password "wrongpassword"
Then An exception was thrown
When I login as user with name "user1" and password "ToManySecrets123#"
Then No exception was thrown
And I logout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,13 @@ Feature: Broker ACL tests
# And clients are disconnected
# And Mqtt Device is stoped

Scenario: D13 Device subscribe on ACL_CTRL_ACC_NOTIFY is not allowed
Scenario: D13 Device subscribe on ACL_CTRL_ACC_NOTIFY is allowed
Normal user with device manage profile subscribes to $EDC/{0}/+/+/NOTIFY/{1}/#
Subscribe is not allowed.
Subscribe is allowed.
Given Mqtt Device is started
And device account and user are created
Given I expect the exception "MqttException" with the text "*"
When broker with clientId "client-1" and user "luise" and password "KeepCalm123." is listening on topic "$EDC/acme/foo/bar/NOTIFY/client-1"
# Then An exception was thrown
And clients are disconnected
And Mqtt Device is stoped
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Feature: Trigger service tests
And I create a job with the name "job0"
When I find scheduler properties with name "Device Connect"
And A regular trigger creator with the name "schedule0" is created
Then I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
When I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down Expand Up @@ -162,7 +162,7 @@ Feature: Trigger service tests
When I find scheduler properties with name "Device Connect"
And A regular trigger creator with the name "" is created
And The trigger is set to start on "12-12-2020" at "10:10"
Then I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
When I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down Expand Up @@ -200,7 +200,7 @@ Feature: Trigger service tests
When I find scheduler properties with name "Device Connect"
And A regular trigger creator with the name "" is created
And The trigger is set to end on "12-12-2020" at "10:10"
Then I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
When I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down Expand Up @@ -343,7 +343,7 @@ Feature: Trigger service tests
And A regular trigger creator with the name "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww" is created
And The trigger is set to start today at "10:00"
And I set retry interval to 1
Then I expect the exception "KapuaIllegalArgumentException" with the text " Value over than allowed max length. Max length is: 255."
Given I expect the exception "KapuaIllegalArgumentException" with the text " Value over than allowed max length. Max length is: 255."
And I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down Expand Up @@ -376,7 +376,7 @@ Feature: Trigger service tests
And I create a job with the name "job0"
When I find scheduler properties with name "Interval Job"
And A regular trigger creator with the name "schedule0" is created
Then I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
When I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down Expand Up @@ -413,7 +413,7 @@ Feature: Trigger service tests
And A regular trigger creator with the name "" is created
And The trigger is set to start on "12-12-2020" at "10:10"
And I set retry interval to 1
Then I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
When I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down Expand Up @@ -454,7 +454,7 @@ Feature: Trigger service tests
When I find scheduler properties with name "Interval Job"
And A regular trigger creator with the name "" is created
And The trigger is set to end on "12-12-2020" at "10:10"
Then I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
When I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down Expand Up @@ -598,7 +598,7 @@ Feature: Trigger service tests
When I find scheduler properties with name "Cron Job"
And A regular trigger creator with the name "schedule0" is created
Then I set cron expression to "0 15 10 * * ?"
Then I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
When I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down Expand Up @@ -635,7 +635,7 @@ Feature: Trigger service tests
And A regular trigger creator with the name "" is created
And The trigger is set to start on "12-12-2020" at "10:10"
Then I set cron expression to "0 15 15 * * ?"
Then I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
When I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down Expand Up @@ -676,7 +676,7 @@ Feature: Trigger service tests
When I find scheduler properties with name "Cron Job"
And A regular trigger creator with the name "" is created
And The trigger is set to end on "12-12-2020" at "10:10"
Then I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
Given I expect the exception "KapuaIllegalNullArgumentException" with the text "An illegal null value was provided"
When I create a new trigger from the existing creator with previously defined date properties
And An exception was thrown
And I logout
Expand Down
Loading

0 comments on commit f778f7f

Please sign in to comment.