Example #1
0
    def _compute_legacy_config_root(
        self, project_id, plugin_id, pc_id, expected_suffix
    ):

        for hostname in [
            "http://test.shotgunstudio.com",
            "http://test.shotgrid.autodesk.com",
        ]:

            path_types = [
                LocalFileStorageManager.CACHE,
                LocalFileStorageManager.PERSISTENT,
                LocalFileStorageManager.LOGGING,
            ]

            for path_type in path_types:
                root = LocalFileStorageManager.get_configuration_root(
                    hostname,
                    project_id,
                    plugin_id,
                    pc_id,
                    path_type,
                    LocalFileStorageManager.CORE_V17,
                )

                site_root = LocalFileStorageManager.get_site_root(
                    hostname, path_type, LocalFileStorageManager.CORE_V17
                )

                self.assertEqual(root, os.path.join(site_root, expected_suffix))
Example #2
0
    def _compute_config_root(self, project_id, plugin_id, pc_id,
                             expected_suffix):

        hostname = "http://test.shotgunstudio.com"

        path_types = [
            LocalFileStorageManager.PREFERENCES, LocalFileStorageManager.CACHE,
            LocalFileStorageManager.PERSISTENT, LocalFileStorageManager.LOGGING
        ]

        for path_type in path_types:
            root = LocalFileStorageManager.get_configuration_root(
                hostname, project_id, plugin_id, pc_id, path_type)

            site_root = LocalFileStorageManager.get_site_root(
                hostname, path_type)

            self.assertEqual(root, os.path.join(site_root, expected_suffix))
Example #3
0
    def _compute_legacy_config_root(self, project_id, plugin_id, pc_id, expected_suffix):

        hostname = "http://test.shotgunstudio.com"

        path_types = [
            LocalFileStorageManager.CACHE,
            LocalFileStorageManager.PERSISTENT,
            LocalFileStorageManager.LOGGING
        ]

        for path_type in path_types:
            root = LocalFileStorageManager.get_configuration_root(
                hostname,
                project_id,
                plugin_id,
                pc_id,
                path_type,
                LocalFileStorageManager.CORE_V17
            )

            site_root = LocalFileStorageManager.get_site_root(hostname, path_type, LocalFileStorageManager.CORE_V17)

            self.assertEqual(root, os.path.join(site_root, expected_suffix))