Exemple #1
0
 def get_response_data(self):
     return Bunch({
         'id': rand_int(),
         'name': self.name,
         'is_active': rand_bool(),
         'job_type': rand_string(),
         'start_date': rand_datetime(),
         'service_id': rand_int(),
         'service_name': rand_string(),
         'extra': rand_string(),
         'weeks': rand_int(),
         'days': rand_int(),
         'minutes': rand_int(),
         'seconds': rand_int(),
         'repeats': rand_int(),
         'cron_definition': rand_string(),
         '': True
     })
Exemple #2
0
 def get_request_data(self):
     return ({
         'cluster_id': rand_int(),
         'name': rand_string(),
         'is_active': rand_bool(),
         'job_type': rand_string(),
         'service': rand_string(),
         'start_date': rand_datetime(),
         'id': rand_int(),
         'extra': rand_string(),
         'weeks': rand_int(),
         'days': rand_int(),
         'hours': rand_int(),
         'minutes': rand_int(),
         'seconds': rand_int(),
         'repeats': rand_int(),
         'cron_definition': rand_string()
     })
 def get_request_data(self):
     return ({'cluster_id':rand_int(), 'name':rand_string(), 'is_active':rand_bool(), 'job_type':rand_string(),
              'service':rand_string(), 'start_date':rand_datetime(), 'id':rand_int(), 'extra':rand_string(),
              'weeks':rand_int(), 'days':rand_int(), 'hours':rand_int(), 'minutes':rand_int(),
              'seconds':rand_int(), 'repeats':rand_int(), 'cron_definition':rand_string()}
             )
 def get_response_data(self):
     return Bunch({'id':rand_int(), 'name':self.name, 'is_active':rand_bool(), 'job_type':rand_string(),
                   'start_date':rand_datetime(), 'service_id':rand_int(), 'service_name':rand_string(),
                   'extra':rand_string(), 'weeks':rand_int(), 'days':rand_int(), 'minutes':rand_int(), 'seconds':rand_int(),
                   'repeats':rand_int(), 'cron_definition':rand_string(), '':True}
     )