Exemple #1
0
    def test_to_path_list(self):
        key_list = [self.key("/hello"), self.key("/hello/goodbye")]

        expected_list = ["/hello", "/hello/goodbye"]

        actual_list = akfilter.to_path_list(key_list)
        self.assertEqual(expected_list, actual_list)
    def test_to_path_list(self):
        key_list = [
            self.key("/hello"),
            self.key("/hello/goodbye")
        ]

        expected_list = [
            "/hello",
            "/hello/goodbye"
        ]

        actual_list = akfilter.to_path_list(key_list)
        self.assertEqual(expected_list, actual_list)
Exemple #3
0
    def load_path_list(self):
        """
            Loads a list of artifact paths from the cloud.  This does
            NOT include metadata or special private data.

            Returns:
                List(basestring)
        """
        with self.bucket_container.create_cloud_storage() as storage:
            artifact_list = storage.get_directory_contents("", True)
            path_list = filters.to_path_list(artifact_list)
            path_list = filters.directories(path_list)
            path_list = filters.all_private(path_list)

        return path_list
Exemple #4
0
    def load_path_list(self):
        """
            Loads a list of artifact paths from the cloud.  This does
            NOT include metadata or special private data.

            Returns:
                List(basestring)
        """
        with self.bucket_container.create_cloud_storage() as storage:
            artifact_list = storage.get_directory_contents("", True)
            path_list = filters.to_path_list(artifact_list)
            path_list = filters.directories(path_list)
            path_list = filters.all_private(path_list)

        return path_list