Ejemplo n.º 1
0
    def test_items_limit_should_not_meet_conditions(self):
        # given:
        config = create_s3_azure_blob_bypass_simple_config()
        config.writer_options['options']['items_limit'] = 10

        # when:

        # then:
        self.assertFalse(S3AzureBlobBypass.meets_conditions(config))
Ejemplo n.º 2
0
    def test_custom_grouper_should_not_meet_conditions(self):
        # given:
        config = create_s3_azure_blob_bypass_simple_config(grouper={
            'name': 'whatever.Grouper',
        })

        # when:

        # then:
        self.assertFalse(S3AzureBlobBypass.meets_conditions(config))
Ejemplo n.º 3
0
    def test_custom_filter_should_not_meet_conditions(self):
        # given:
        config = create_s3_azure_blob_bypass_simple_config(filter={
            'name': 'exporters.filters.PythonexpFilter',
            'options': {'python_expression': 'None'}
        })

        # when:

        # then:
        self.assertFalse(S3AzureBlobBypass.meets_conditions(config))
Ejemplo n.º 4
0
 def test_should_meet_conditions(self):
     # shouldn't raise any exception
     S3AzureBlobBypass.meets_conditions(create_s3_azure_blob_bypass_simple_config())