Skip to content

Commit

Permalink
fix unit test filenames (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
balamurugana authored Oct 20, 2020
1 parent de50dd4 commit c5536a7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion minio/lifecycleconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def toxml(self, element):
if self._noncurrent_version_expiration:
self._noncurrent_version_expiration.toxml(element)
if self._noncurrent_version_transition:
self._noncurrent_version_expiration.toxml(element)
self._noncurrent_version_transition.toxml(element)
if self._transition:
self._transition.toxml(element)
return element
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
from unittest import TestCase

from minio import xml
from minio.commonconfig import DISABLED, ENABLED, AndOperator, Filter
from minio.commonconfig import DISABLED, ENABLED, AndOperator, Filter, Tags
from minio.replicationconfig import (DeleteMarkerReplication, Destination,
ReplicationConfig, Rule)


class ReplicationConfigTest(TestCase):
def test_config(self):
tags = Tags()
tags.update({"key1": "value1", "key2": "value2"})
config = ReplicationConfig(
"REPLACE-WITH-ACTUAL-ROLE",
[
Expand All @@ -35,12 +37,7 @@ def test_config(self):
delete_marker_replication=DeleteMarkerReplication(
DISABLED,
),
rule_filter=Filter(
AndOperator(
"TaxDocs",
{"key1": "value1", "key2": "value2"},
),
),
rule_filter=Filter(AndOperator("TaxDocs", tags)),
rule_id="rule1",
priority=1,
),
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit c5536a7

Please sign in to comment.