|
13 | 13 | # limitations under the License. |
14 | 14 |
|
15 | 15 | import json |
| 16 | +import os |
16 | 17 | import random |
17 | 18 | import string |
18 | 19 | from collections import namedtuple |
|
41 | 42 | RuleReplaceFailed, |
42 | 43 | UnsupportedOperation, |
43 | 44 | ) |
44 | | -from rucio.common.policy import get_policy |
45 | 45 | from rucio.common.schema import get_schema_value |
46 | 46 | from rucio.common.types import InternalAccount, InternalScope |
47 | 47 | from rucio.common.utils import generate_uuid as uuid |
@@ -928,12 +928,9 @@ def test_add_rule_with_ignore_availability(self, vo, mock_scope, did_factory, jd |
928 | 928 | for filtered_lock in [lock for lock in get_replica_locks(scope=file['scope'], name=file['name'])]: |
929 | 929 | assert (filtered_lock['state'] == LockState.STUCK) |
930 | 930 |
|
| 931 | + @pytest.mark.skipif(os.environ.get('POLICY') != 'atlas', reason='ATLAS-specific test') |
931 | 932 | def test_delete_rule_country_admin(self, vo, mock_scope, did_factory, jdoe_account): |
932 | 933 | """ REPLICATION RULE (CORE): Delete a rule with a country admin account""" |
933 | | - if get_policy() != 'atlas': |
934 | | - LOG.info("Skipping atlas-specific test") |
935 | | - return |
936 | | - |
937 | 934 | rse = rse_name_generator() |
938 | 935 | rse_id = add_rse(rse, vo=vo) |
939 | 936 | add_rse_attribute(rse_id, RseAttr.COUNTRY, 'test') |
@@ -1024,12 +1021,9 @@ def test_move_rule_with_arguments(self, mock_scope, did_factory, jdoe_account): |
1024 | 1021 | pytest.raises(RuleReplaceFailed, move_rule, rule_id, self.rse3) |
1025 | 1022 | pytest.raises(RucioException, move_rule, 'foo', self.rse3) |
1026 | 1023 |
|
| 1024 | + @pytest.mark.skipif(os.environ.get('POLICY') != 'atlas', reason='ATLAS-specific test') |
1027 | 1025 | def test_add_rule_with_scratchdisk(self, vo, mock_scope, did_factory, jdoe_account): |
1028 | 1026 | """ REPLICATION RULE (CORE): Add a replication rule for scratchdisk""" |
1029 | | - if get_policy() != 'atlas': |
1030 | | - LOG.info("Skipping atlas-specific test") |
1031 | | - return |
1032 | | - |
1033 | 1027 | rse = rse_name_generator() |
1034 | 1028 | rse_id = add_rse(rse, vo=vo) |
1035 | 1029 | add_rse_attribute(rse_id, RseAttr.TYPE, 'SCRATCHDISK') |
|
0 commit comments