Skip to content

Commit

Permalink
fix maxRetryTime
Browse files Browse the repository at this point in the history
  • Loading branch information
CiCi503 committed Feb 6, 2018
1 parent 1f123aa commit 95b8862
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/trigger_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_oss_trigger(self):
invocation_role)
# 404
with self.assertRaises(fc2.FcError):
self.client.get_trigger(service_name + 'invalid', function_name, trigger_name)
self.client.get_trigger(service_name, function_name + 'invalid', trigger_name)

# update
# 200 ok
Expand Down Expand Up @@ -181,7 +181,7 @@ def test_log_trigger(self):
},
'jobConfig': {
'triggerInterval': 60,
'maxRetryime': 0
'maxRetryTime': 10
},
'functionParameter': {},
'logConfig': {
Expand Down Expand Up @@ -221,7 +221,7 @@ def test_log_trigger(self):
'logstore': log_store + '_source'
},
'jobConfig': {
'maxRetryime': 4,
'maxRetryTime': 0,
'triggerInterval': 80
},
'functionParameter': {},
Expand Down Expand Up @@ -261,7 +261,8 @@ def check_trigger_response(self, resp, trigger_name, trigger_type, trigger_confi
self.assertEqual(resp['invocationRole'], invocation_role)
self.assertTrue('createdTime' in resp)
self.assertTrue('lastModifiedTime' in resp)
self.assertTrue('triggerConfig' in resp)
self.assertEqual(resp['triggerConfig'], trigger_config)


if __name__ == '__main__':
unittest.main()

0 comments on commit 95b8862

Please sign in to comment.