Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

add read file and download snippets for storage inspector (#8640)

Shahmir Varqha8a2e25197e22
diff --git a/frontend/src/components/storage/__tests__/storage-snippets.test.ts b/frontend/src/components/storage/__tests__/storage-snippets.test.ts
new file mode 100644
index 0000000000..95804660de
--- /dev/null
+++ b/frontend/src/components/storage/__tests__/storage-snippets.test.ts
@@ -0,0 +1,253 @@
+/* Copyright 2026 Marimo. All rights reserved. */
+import { describe, expect, it } from "vitest";
+import {
+ STORAGE_SNIPPETS,
+ type StorageSnippetContext,
+} from "../storage-snippets";
+
+const readSnippet = STORAGE_SNIPPETS.find((s) => s.id === "read-file")!;
+const downloadSnippet = STORAGE_SNIPPETS.find((s) => s.id === "download-file")!;
+
+function makeCtx(
+ overrides: Partial<StorageSnippetContext> = {},
+): StorageSnippetContext {
+ return {
+ variableName: "store",
+ protocol: "s3",
+ entry: {
+ path: "data/file.csv",
+ kind: "object",
+ size: 1024,
+ lastModified: null,
+ },
+ backendType: "obstore",
+ ...overrides,
+ };
+}
+
+describe("read-file snippet", () => {
+ it("obstore backend", () => {
+ expect(readSnippet.getCode(makeCtx())).toMatchInlineSnapshot(`
+ "_data = store.get("data/file.csv").bytes()
+ _data"
+ `);
+ });
+
+ it("fsspec backend", () => {
+ expect(
+ readSnippet.getCode(
+ makeCtx({ backendType: "fsspec", variableName: "fs" }),
+ ),
+ ).toMatchInlineSnapshot(`
+ "_data = fs.cat_file("data/file.csv")
+ _data"
+ `);
+ });
+
+ it("returns null for directories", () => {
+ expect(
+ readSnippet.getCode(
+ makeCtx({
+ entry: {
+ path: "data/",
+ kind: "directory",
+ size: 0,
+ lastModified: null,
+ },
+ }),
+ ),
+ ).toBeNull();
+ });
+
+ it("escapes double quotes in paths", () => {
+ expect(
+ readSnippet.getCode(
+ makeCtx({
+ entry: {
+ path: 'data/"file".csv',
+ kind: "object",
+ size: 100,
+ lastModified: null,
+ },
+ }),
+ ),
+ ).toMatchInlineSnapshot(`
+ "_data = store.get("data/\\"file\\".csv").bytes()
+ _data"
+ `);
+ });
+
+ it("escapes backslashes in paths", () => {
+ expect(
+ readSnippet.getCode(
+ makeCtx({
+ entry: {
+ path: "data\\file.csv",
+ kind: "object",
+ size: 100,
+ lastModified: null,
+ },
+ }),
+ ),
+ ).toMatchInlineSnapshot(`
+ "_data = store.get("data\\\\file.csv").bytes()
+ _data"
+ `);
+ });
+
+ it("escapes newlines and tabs in paths", () => {
+ expect(
+ readSnippet.getCode(
+ makeCtx({
+ entry: {
+ path: "data/file\nname\there.csv",
+ kind: "object",
+ size: 100,
+ lastModified: null,
+ },
+ }),
+ ),
+ ).toMatchInlineSnapshot(`
+ "_data = store.get("data/file\\nname\\there.csv").bytes()
+ _data"
+ `);
+ });
+
+ it("escapes control characters in paths", () => {
+ expect(
+ readSnippet.getCode(
+ makeCtx({
+ entry: {
+ path: "data/\u0000\u001F.csv",
+ kind: "object",
+ size: 100,
+ lastModified: null,
+ },
+ }),
+ ),
+ ).toMatchInlineSnapshot(`
+ "_data = store.get("data/\\u0000\\u001f.csv").bytes()
+ _data"
+ `);
+ });
+});
+
+describe("download-file snippet", () => {
+ it("obstore s3 backend", () => {
+ expect(downloadSnippet.getCode(makeCtx())).toMatchInlineSnapshot(`
+ "from datetime import timedelta
+ from obstore import sign
+
+ signed_url = sign(
+ store, "GET", "data/file.csv",
+ expires_in=timedelta(hours=1),
+ )
+ signed_url"
+ `);
+ });
+
+ it("obstore gcs backend", () => {
+ expect(
+ downloadSnippet.getCode(makeCtx({ protocol: "gcs" })),
+ ).toMatchInlineSnapshot(`
+ "from datetime import timedelta
+ from obstore import sign
+
+ signed_url = sign(
+ store, "GET", "data/file.csv",
+ expires_in=timedelta(hours=1),
+ )
+ signed_url"
+ `);
+ });
+
+ it("obstore cloudflare backend", () => {
+ expect(
+ downloadSnippet.getCode(makeCtx({ protocol: "cloudflare" })),
+ ).toMatchInlineSnapshot(`
+ "from datetime import timedelta
+ from obstore import sign
+
+ signed_url = sign(
+ store, "GET", "data/file.csv",
+ expires_in=timedelta(hours=1),
+ )
+ signed_url"
+ `);
+ });
+
+ it("returns null for http obstore (not signable)", () => {
+ expect(downloadSnippet.getCode(makeCtx({ protocol: "http" }))).toBeNull();
+ });
+
+ it("returns null for file obstore (not signable)", () => {
+ expect(downloadSnippet.getCode(makeCtx({ protocol: "file" }))).toBeNull();
+ });
+
+ it("returns null for in-memory obstore (not signable)", () => {
+ expect(
+ downloadSnippet.getCode(makeCtx({ protocol: "in-memory" })),
+ ).toBeNull();
+ });
+
+ it("fsspec backend", () => {
+ expect(
+ downloadSnippet.getCode(
+ makeCtx({ backendType: "fsspec", variableName: "fs" }),
+ ),
+ ).toMatchInlineSnapshot(`"fs.get("data/file.csv", "file.csv")"`);
+ });
+
+ it("fsspec backend with nested path", () => {
+ expect(
+ downloadSnippet.getCode(
+ makeCtx({
+ backendType: "fsspec",
+ variableName: "fs",
+ entry: {
+ path: "nested/dir/report.parquet",
+ kind: "file",
+ size: 500,
+ lastModified: null,
+ },
+ }),
+ ),
+ ).toMatchInlineSnapshot(
+ `"fs.get("nested/dir/report.parquet", "report.parquet")"`,
+ );
+ });
+
+ it("returns null for directories", () => {
+ expect(
+ downloadSnippet.getCode(
+ makeCtx({
+ entry: {
+ path: "data/",
+ kind: "directory",
+ size: 0,
+ lastModified: null,
+ },
+ }),
+ ),
+ ).toBeNull();
+ });
+});
+
+describe("all snippets return null for directories", () => {
+ for (const snippet of STORAGE_SNIPPETS) {
+ it(`${snippet.id} returns null for directory entries`, () => {
+ expect(
+ snippet.getCode(
+ makeCtx({
+ entry: {
+ path: "some-dir/",
+ kind: "directory",
+ size: 0,
+ lastModified: null,
+ },
+ }),
+ ),
+ ).toBeNull();
+ });
+ }
+});
diff --git a/frontend/src/components/storage/storage-inspector.tsx b/frontend/src/components/storage/storage-inspector.tsx
index 1f09431abb..b4ea8708fe 100644
--- a/frontend/src/components/storage/storage-inspector.tsx
+++ b/frontend/src/components/storage/storage-inspector.tsx
@@ -15,6 +15,7 @@ import {
import React, { useCallback, useState } from "react";
import { useLocale } from "react-aria";
import { EngineVariable } from "@/components/databases/engine-variable";
+import { useAddCodeToNewCell } from "@/components/editor/cell/useAddCell";
import { PanelEmptyState } from "@/components/editor/chrome/panels/empty-state";
import { AddConnectionDialog } from "@/components/editor/connections/add-connection-dialog";
import {
@@ -32,6 +33,7 @@ import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
+ DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { Tooltip } from "@/components/ui/tooltip";
@@ -47,7 +49,7 @@ import type {
StorageNamespace,
StoragePathKey,
} from "@/core/storage/types";
-import { storagePathKey, storageUrl } from "@/core/storage/types";
+import { storagePathKey } from "@/core/storage/types";
import type { VariableName } from "@/core/variables/types";
import { cn } from "@/utils/cn";
import { copyToClipboard } from "@/utils/copy";
@@ -58,6 +60,7 @@ import { ErrorState } from "../datasources/components";
import { Button } from "../ui/button";
import { ProtocolIcon } from "./components";
import { StorageFileViewer } from "./storage-file-viewer";
+import { STORAGE_SNIPPETS } from "./storage-snippets";
interface OpenFileInfo {
entry: StorageEntry;
@@ -145,6 +148,7 @@ const StorageEntryChildren: React.FC<{
namespace: string;
protocol: string;
rootPath: string;
+ backendType: StorageNamespace["backendType"];
prefix: string;
depth: number;
locale: string;
@@ -154,6 +158,7 @@ const StorageEntryChildren: React.FC<{
namespace,
protocol,
rootPath,
+ backendType,
prefix,
depth,
locale,
@@ -214,6 +219,7 @@ const StorageEntryChildren: React.FC<{
namespace={namespace}
protocol={protocol}
rootPath={rootPath}
+ backendType={backendType}
depth={depth}
locale={locale}
searchValue={searchValue}
@@ -229,6 +235,7 @@ const StorageEntryRow: React.FC<{
namespace: string;
protocol: string;
rootPath: string;
+ backendType: StorageNamespace["backendType"];
depth: number;
locale: string;
searchValue: string;
@@ -238,6 +245,7 @@ const StorageEntryRow: React.FC<{
namespace,
protocol,
rootPath,
+ backendType,
depth,
locale,
searchValue,
@@ -245,6 +253,7 @@ const StorageEntryRow: React.FC<{
}) => {
const [isExpanded, setIsExpanded] = useState(false);
const { entriesByPath } = useStorage();
+ const addCodeToNewCell = useAddCodeToNewCell();
const isDir = entry.kind === "directory";
const name = displayName(entry.path);
const hasSearch = !!searchValue.trim();
@@ -361,13 +370,12 @@ const StorageEntryRow: React.FC<{
)}
<DropdownMenuItem
onSelect={async () => {
- const url = storageUrl(protocol, rootPath, entry.path);
- await copyToClipboard(url.toString());
+ await copyToClipboard(entry.path);
toast({ title: "Copied to clipboard" });
}}
>
<CopyIcon className={MENU_ITEM_ICON_CLASS} />
- Copy URL
+ Copy path
</DropdownMenuItem>
{!isDir && (
<DropdownMenuItem onSelect={() => handleDownload()}>
@@ -375,6 +383,28 @@ const StorageEntryRow: React.FC<{
Download
</DropdownMenuItem>
)}
+ <DropdownMenuSeparator />
+ {STORAGE_SNIPPETS.map((snippet) => {
+ const code = snippet.getCode({
+ variableName: namespace,
+ protocol,
+ entry,
+ backendType,
+ });
+ if (code === null) {
+ return null;
+ }
+ const Icon = snippet.icon;
+ return (
+ <DropdownMenuItem
+ key={snippet.id}
+ onSelect={() => addCodeToNewCell(code)}
+ >
+ <Icon className={MENU_ITEM_ICON_CLASS} />
+ {snippet.label}
+ </DropdownMenuItem>
+ );
+ })}
</DropdownMenuContent>
</DropdownMenu>
</div>
@@ -384,6 +414,7 @@ const StorageEntryRow: React.FC<{
namespace={namespace}
protocol={protocol}
rootPath={rootPath}
+ backendType={backendType}
prefix={entry.path}
depth={depth + 1}
locale={locale}
@@ -498,6 +529,7 @@ const StorageNamespaceSection: React.FC<{
namespace={namespaceName}
protocol={namespace.protocol}
rootPath={namespace.rootPath}
+ backendType={namespace.backendType}
depth={1}
locale={locale}
searchValue={searchValue}
diff --git a/frontend/src/components/storage/storage-snippets.ts b/frontend/src/components/storage/storage-snippets.ts
new file mode 100644
index 0000000000..3f8ace9bcb
--- /dev/null
+++ b/frontend/src/components/storage/storage-snippets.ts
@@ -0,0 +1,67 @@
+/* Copyright 2026 Marimo. All rights reserved. */
+
+import type { LucideIcon } from "lucide-react";
+import { BookOpenIcon, LinkIcon } from "lucide-react";
+import type { StorageEntry, StorageNamespace } from "@/core/storage/types";
+
+type BackendType = StorageNamespace["backendType"];
+
+export interface StorageSnippetContext {
+ variableName: string;
+ protocol: string;
+ entry: StorageEntry;
+ backendType: BackendType;
+}
+
+export interface StorageSnippet {
+ id: string;
+ label: string;
+ icon: LucideIcon;
+ /** Return the code string, or null to hide the snippet for this context. */
+ getCode: (ctx: StorageSnippetContext) => string | null;
+}
+
+const NOT_SIGNABLE_PROTOCOLS = new Set(["http", "file", "in-memory"]);
+
+function escapeForPythonString(value: string): string {
+ return JSON.stringify(value).slice(1, -1);
+}
+
+export const STORAGE_SNIPPETS: StorageSnippet[] = [
+ {
+ id: "read-file",
+ label: "Insert read snippet",
+ icon: BookOpenIcon,
+ getCode: (ctx) => {
+ if (ctx.entry.kind === "directory") {
+ return null;
+ }
+ const path = escapeForPythonString(ctx.entry.path);
+ if (ctx.backendType === "obstore") {
+ return `_data = ${ctx.variableName}.get("${path}").bytes()\n_data`;
+ }
+ return `_data = ${ctx.variableName}.cat_file("${path}")\n_data`;
+ },
+ },
+ {
+ id: "download-file",
+ label: "Insert download snippet",
+ icon: LinkIcon,
+ getCode: (ctx) => {
+ if (ctx.entry.kind === "directory") {
+ return null;
+ }
+ const path = escapeForPythonString(ctx.entry.path);
+ if (ctx.backendType === "obstore") {
+ if (NOT_SIGNABLE_PROTOCOLS.has(ctx.protocol)) {
+ return null;
+ }
+ return `from datetime import timedelta\nfrom obstore import sign\n\nsigned_url = sign(\n ${ctx.variableName}, "GET", "${path}",\n expires_in=timedelta(hours=1),\n)\nsigned_url`;
+ }
+ const filename = escapeForPythonString(
+ ctx.entry.path.split("/").pop() || "download",
+ );
+ return `${ctx.variableName}.get("${path}", "${filename}")`;
+ },
+ },
+];
diff --git a/frontend/src/core/storage/__tests__/state.test.ts b/frontend/src/core/storage/__tests__/state.test.ts
index d10e65b00d..2def07fcc2 100644
--- a/frontend/src/core/storage/__tests__/state.test.ts
+++ b/frontend/src/core/storage/__tests__/state.test.ts
@@ -10,6 +10,7 @@ function makeNamespace(
overrides: Partial<StorageNamespace> & { name: string },
): StorageNamespace {
return {
+ backendType: overrides.backendType ?? "obstore",
displayName: overrides.displayName ?? overrides.name,
name: overrides.name,
protocol: overrides.protocol ?? "s3",
diff --git a/marimo/_data/_external_storage/get_storage.py b/marimo/_data/_external_storage/get_storage.py
index 1449e76ec3..66b46e66e1 100644
--- a/marimo/_data/_external_storage/get_storage.py
+++ b/marimo/_data/_external_storage/get_storage.py
@@ -40,5 +40,6 @@ def storage_backend_to_storage_namespace(
display_name=storage_backend.display_name,
protocol=storage_backend.protocol,
root_path=storage_backend.root_path or "",
+ backend_type=storage_backend.backend_type,
storage_entries=[],
)
diff --git a/marimo/_data/_external_storage/models.py b/marimo/_data/_external_storage/models.py
index c54624533d..9d3257fccc 100644
--- a/marimo/_data/_external_storage/models.py
+++ b/marimo/_data/_external_storage/models.py
@@ -12,6 +12,7 @@ from marimo._utils.assert_never import log_never
CLOUD_STORAGE_TYPES = Literal["s3", "gcs", "azure", "cloudflare", "coreweave"]
KNOWN_STORAGE_TYPES = Literal[CLOUD_STORAGE_TYPES, "http", "file", "in-memory"]
+BackendType = Literal["fsspec", "obstore"]
SIGNED_URL_EXPIRATION = 60
@@ -44,6 +45,7 @@ class StorageNamespace(msgspec.Struct, rename="camel"):
display_name: The display name of the storage namespace.
protocol: The protocol of the storage namespace. E.g. s3, gcs, azure, http, file, in-memory.
root_path: The root path of the storage namespace.
+ backend_type: The type of the storage backend (fsspec or obstore)
storage_entries: The storage entries in the storage namespace.
"""
@@ -51,6 +53,7 @@ class StorageNamespace(msgspec.Struct, rename="camel"):
display_name: str
protocol: str
root_path: str
+ backend_type: BackendType
storage_entries: list[StorageEntry]
@@ -134,6 +137,11 @@ class StorageBackend(abc.ABC, Generic[Backend]):
def protocol(self) -> KNOWN_STORAGE_TYPES | str:
"""Return the protocol of the storage backend."""
+ @property
+ @abc.abstractmethod
+ def backend_type(self) -> BackendType:
+ """Return the type of the storage backend."""
+
@property
def display_name(self) -> str:
protocol = self.protocol
diff --git a/marimo/_data/_external_storage/storage.py b/marimo/_data/_external_storage/storage.py
index bc0a3e5001..6f5eba71e6 100644
--- a/marimo/_data/_external_storage/storage.py
+++ b/marimo/_data/_external_storage/storage.py
@@ -12,6 +12,7 @@ from marimo._data._external_storage.models import (
DEFAULT_FETCH_LIMIT,
KNOWN_STORAGE_TYPES,
SIGNED_URL_EXPIRATION,
+ BackendType,
StorageBackend,
StorageEntry,
)
@@ -170,6 +171,10 @@ class Obstore(StorageBackend["ObjectStore"]):
log_never(self.store)
return "unknown"
+ @property
+ def backend_type(self) -> BackendType:
+ return "obstore"
+
@property
def root_path(self) -> str | None:
from obstore.store import HTTPStore, LocalStore, MemoryStore
@@ -350,6 +355,10 @@ class FsspecFilesystem(StorageBackend["AbstractFileSystem"]):
return normalize_protocol(store_protocol) or store_protocol
+ @property
+ def backend_type(self) -> BackendType:
+ return "fsspec"
+
@property
def root_path(self) -> str | None:
return cast(str, self.store.root_marker)
diff --git a/packages/openapi/api.yaml b/packages/openapi/api.yaml
index 75ab086945..ddcc93aa4f 100644
--- a/packages/openapi/api.yaml
+++ b/packages/openapi/api.yaml
@@ -4481,8 +4481,13 @@ components:
\ display_name: The display name of the storage namespace.\n \
\ protocol: The protocol of the storage namespace. E.g. s3, gcs, azure, http,\
\ file, in-memory.\n root_path: The root path of the storage namespace.\n\
+ \ backend_type: The type of the storage backend (fsspec or obstore)\n\
\ storage_entries: The storage entries in the storage namespace."
properties:
+ backendType:
+ enum:
+ - fsspec
+ - obstore
displayName:
type: string
name:
@@ -4500,6 +4505,7 @@ components:
- displayName
- protocol
- rootPath
+ - backendType
- storageEntries
title: StorageNamespace
type: object
diff --git a/packages/openapi/src/api.ts b/packages/openapi/src/api.ts
index 8c088e89bb..3a3195508e 100644
--- a/packages/openapi/src/api.ts
+++ b/packages/openapi/src/api.ts
@@ -5908,9 +5908,12 @@ export interface components {
* display_name: The display name of the storage namespace.
* protocol: The protocol of the storage namespace. E.g. s3, gcs, azure, http, file, in-memory.
* root_path: The root path of the storage namespace.
+ * backend_type: The type of the storage backend (fsspec or obstore)
* storage_entries: The storage entries in the storage namespace.
*/
StorageNamespace: {
+ /** @enum {unknown} */
+ backendType: "fsspec" | "obstore";
displayName: string;
name: string;
protocol: string;
diff --git a/tests/_data/_external_storage/test_get_storage.py b/tests/_data/_external_storage/test_get_storage.py
index 1bf597b402..5229e5e084 100644
--- a/tests/_data/_external_storage/test_get_storage.py
+++ b/tests/_data/_external_storage/test_get_storage.py
@@ -105,6 +105,7 @@ class TestStorageBackendToStorageNamespace:
mock_backend.display_name = "Amazon S3"
mock_backend.protocol = "s3"
mock_backend.root_path = "my-bucket"
+ mock_backend.backend_type = "obstore"
result = storage_backend_to_storage_namespace(mock_backend)
@@ -114,6 +115,7 @@ class TestStorageBackendToStorageNamespace:
display_name="Amazon S3",
protocol="s3",
root_path="my-bucket",
+ backend_type="obstore",
storage_entries=[],
)
)
@@ -125,6 +127,7 @@ class TestStorageBackendToStorageNamespace:
mock_backend.protocol = "in-memory"
mock_backend.root_path = None
mock_backend.display_name = "In-memory"
+ mock_backend.backend_type = "obstore"
mock_backend.list_entries.return_value = []
result = storage_backend_to_storage_namespace(mock_backend)
@@ -135,6 +138,7 @@ class TestStorageBackendToStorageNamespace:
display_name="In-memory",
protocol="in-memory",
root_path="",
+ backend_type="obstore",
storage_entries=[],
)
)
@@ -155,6 +159,7 @@ class TestStorageBackendToStorageNamespace:
display_name="In-memory",
protocol="in-memory",
root_path="/",
+ backend_type="fsspec",
storage_entries=[],
)
)
@@ -174,6 +179,7 @@ class TestStorageBackendToStorageNamespace:
display_name="In-memory",
protocol="in-memory",
root_path="",
+ backend_type="obstore",
storage_entries=[],
)
)
diff --git a/tests/_data/_external_storage/test_storage_models.py b/tests/_data/_external_storage/test_storage_models.py
index d0e17b59a5..afedaa482b 100644
--- a/tests/_data/_external_storage/test_storage_models.py
+++ b/tests/_data/_external_storage/test_storage_models.py
@@ -405,6 +405,13 @@ class TestObstore:
backend = self._make_backend(store)
assert backend.protocol == "file"
+ def test_backend_type(self) -> None:
+ from obstore.store import MemoryStore
+
+ store = MemoryStore()
+ backend = self._make_backend(store)
+ assert backend.backend_type == "obstore"
+
def test_root_path_memory(self) -> None:
from obstore.store import MemoryStore
@@ -1064,6 +1071,13 @@ class TestFsspecFilesystemIntegration:
backend = FsspecFilesystem(fs, VariableName("mem_fs"))
assert backend.protocol == "in-memory"
+ def test_backend_type_memory_filesystem(self) -> None:
+ from fsspec.implementations.memory import MemoryFileSystem
+
+ fs = MemoryFileSystem()
+ backend = FsspecFilesystem(fs, VariableName("mem_fs"))
+ assert backend.backend_type == "fsspec"
+
@pytest.mark.skipif(not HAS_OBSTORE, reason="obstore not installed")
class TestObstoreIntegration:
diff --git a/tests/_session/state/test_session_external_storage.py b/tests/_session/state/test_session_external_storage.py
index 716929b6f0..b2aed2bcc3 100644
--- a/tests/_session/state/test_session_external_storage.py
+++ b/tests/_session/state/test_session_external_storage.py
@@ -27,6 +27,7 @@ def test_add_storage_namespaces(session_view: SessionView) -> None:
display_name="s3_store",
protocol="s3",
root_path="my-bucket",
+ backend_type="obstore",
storage_entries=[],
),
StorageNamespace(
@@ -34,6 +35,7 @@ def test_add_storage_namespaces(session_view: SessionView) -> None:
display_name="local_fs",
protocol="file",
root_path="/data",
+ backend_type="fsspec",
storage_entries=[],
),
]
@@ -48,6 +50,7 @@ def test_add_storage_namespaces(session_view: SessionView) -> None:
display_name="s3_store",
protocol="s3",
root_path="my-bucket",
+ backend_type="obstore",
storage_entries=[],
),
StorageNamespace(
@@ -55,6 +58,7 @@ def test_add_storage_namespaces(session_view: SessionView) -> None:
display_name="local_fs",
protocol="file",
root_path="/data",
+ backend_type="fsspec",
storage_entries=[],
),
]
@@ -70,6 +74,7 @@ def test_add_storage_namespaces(session_view: SessionView) -> None:
display_name="s3_store_updated",
protocol="s3",
root_path="new-bucket",
+ backend_type="obstore",
storage_entries=[],
),
StorageNamespace(
@@ -77,6 +82,7 @@ def test_add_storage_namespaces(session_view: SessionView) -> None:
display_name="gcs_store",
protocol="gcs",
root_path="gcs-bucket",
+ backend_type="obstore",
storage_entries=[],
),
]
@@ -91,6 +97,7 @@ def test_add_storage_namespaces(session_view: SessionView) -> None:
display_name="s3_store_updated",
protocol="s3",
root_path="new-bucket",
+ backend_type="obstore",
storage_entries=[],
),
StorageNamespace(
@@ -98,6 +105,7 @@ def test_add_storage_namespaces(session_view: SessionView) -> None:
display_name="local_fs",
protocol="file",
root_path="/data",
+ backend_type="fsspec",
storage_entries=[],
),
StorageNamespace(
@@ -105,6 +113,7 @@ def test_add_storage_namespaces(session_view: SessionView) -> None:
display_name="gcs_store",
protocol="gcs",
root_path="gcs-bucket",
+ backend_type="obstore",
storage_entries=[],
),
]
@@ -137,6 +146,7 @@ def test_storage_namespaces_filtered_by_variables(
display_name="s3_store",
protocol="s3",
root_path="bucket-1",
+ backend_type="obstore",
storage_entries=[],
),
StorageNamespace(
@@ -144,6 +154,7 @@ def test_storage_namespaces_filtered_by_variables(
display_name="gcs_store",
protocol="gcs",
root_path="bucket-2",
+ backend_type="obstore",
storage_entries=[],
),
]
@@ -183,6 +194,7 @@ def test_storage_namespaces_filtered_by_variables(
display_name="s3_store",
protocol="s3",
root_path="bucket-1",
+ backend_type="obstore",
storage_entries=[],
),
]
@@ -218,6 +230,7 @@ def test_storage_namespaces_in_notifications(
display_name="store",
protocol="s3",
root_path="bucket",
+ backend_type="obstore",
storage_entries=[],
),
]
@@ -237,6 +250,7 @@ def test_storage_namespaces_in_notifications(
display_name="store",
protocol="s3",
root_path="bucket",
+ backend_type="obstore",
storage_entries=[],
),
]