Example #1
0
    def filter_funcs():
        if args.select:
            for query in args.select:
                yield filter_by_jmespath(query)

        if args.task_uuid:
            yield filter_by_uuid(args.task_uuid)
Example #2
0
 def test_match(self):
     """
     Return ``True`` if the jmespath does match the input.
     """
     self.assertThat(
         filter_by_jmespath('action_type == `app:action`')(action_task),
         Equals(True))
Example #3
0
 def test_no_match(self):
     """
     Return ``False`` if the jmespath does not match the input.
     """
     self.assertThat(
         filter_by_jmespath('action_type == `app:action`')(message_task),
         Equals(False))
Example #4
0
    def filter_funcs():
        if select is not None:
            for query in select:
                yield filter_by_jmespath(query)

        if task_uuid is not None:
            yield filter_by_uuid(task_uuid)
Example #5
0
 def test_match(self):
     """
     Return ``True`` if the jmespath does match the input.
     """
     self.assertThat(
         filter_by_jmespath('action_type == `app:action`')(action_task),
         Equals(True))
Example #6
0
 def test_no_match(self):
     """
     Return ``False`` if the jmespath does not match the input.
     """
     self.assertThat(
         filter_by_jmespath('action_type == `app:action`')(message_task),
         Equals(False))
Example #7
0
 def filter_funcs():
     if task_uuid is not None:
         yield filter_by_uuid(task_uuid)
     if start:
         yield filter_by_start_date(start)
     if end:
         yield filter_by_end_date(end)
     if select is not None:
         for query in select:
             yield filter_by_jmespath(query)
Example #8
0
    def filter_funcs():
        if start:
            yield filter_by_start_date(start)
        if end:
            yield filter_by_end_date(end)

        if select is not None:
            for query in select:
                yield filter_by_jmespath(query)

        if task_uuid is not None:
            yield filter_by_uuid(task_uuid)