diff --git a/tests/conftest.py b/tests/conftest.py index 6487e74..77bf955 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -587,7 +587,7 @@ def raise_for_status(self): yield -@pytest.fixture(params=['cdh', 'hdp']) +@pytest.fixture(params=['cdh', 'cdp', 'hdp']) def users_groups_for_directories(request, onefs_client): """ Get users and groups from the identities module that @@ -603,6 +603,7 @@ def _pass(*args, **kwargs): identities.iterate_identities( { 'cdh': identities.cdh_identities, + 'cdp': identities.cdh_identities, 'hdp': identities.hdp_identities, }[request.param](onefs_client.zone), create_group=lambda group_name: groups.add(group_name), @@ -614,6 +615,7 @@ def _pass(*args, **kwargs): (users, groups), { 'cdh': directories.cdh_directories, + 'cdp': directories.cdh_directories, 'hdp': directories.hdp_directories, }[request.param]() ) diff --git a/tests/test__scripts.py b/tests/test__scripts.py index d991313..7dfcb0a 100644 --- a/tests/test__scripts.py +++ b/tests/test__scripts.py @@ -21,7 +21,7 @@ def empty_hdfs_root(onefs_client): @pytest.mark.usefixtures('empty_hdfs_root') @pytest.mark.parametrize('script', ['isilon_create_users', 'isilon_create_directories']) -@pytest.mark.parametrize('dist', ['cdh', 'hdp']) +@pytest.mark.parametrize('dist', ['cdh', 'cdp', 'hdp']) def test_dry_run(script, onefs_client, dist): subprocess.check_call([ script, diff --git a/tests/test_identities.py b/tests/test_identities.py index 2df53e0..34067cd 100644 --- a/tests/test_identities.py +++ b/tests/test_identities.py @@ -8,6 +8,7 @@ 'identities', [ isilon_hadoop_tools.identities.cdh_identities, + isilon_hadoop_tools.identities.cdp_identities, isilon_hadoop_tools.identities.hdp_identities, ], )