Files
email-tracker/external/duckdb/test/extension/install_extension.test
2025-10-24 19:21:19 -05:00

46 lines
1.3 KiB
SQL

# name: test/extension/install_extension.test
# description: Test various ways of installing extensions
# group: [extension]
statement ok
PRAGMA enable_verification
statement ok
set extension_directory='__TEST_DIR__/install_extension'
# Check defaults are correct
statement error
INSTALL will_never_exist;
----
Failed to download extension "will_never_exist" at URL "http://extensions.duckdb.org
# Explicitly install from core
statement error
INSTALL will_never_exist FROM core;
----
Failed to download extension "will_never_exist" at URL "http://extensions.duckdb.org
# Explicitly install from nightly
statement error
INSTALL will_never_exist FROM core_nightly;
----
Failed to download extension "will_never_exist" at URL "http://nightly-extensions.duckdb.org
# Explicitly install from community
statement error
INSTALL will_never_exist FROM community;
----
Failed to download extension "will_never_exist" at URL "http://community-extensions.duckdb.org
# Alias can not quoted: string literals are interpreted as paths
statement error
INSTALL will_never_exist FROM 'core';
----
IO Error: Failed to install local extension "will_never_exist", no access to the file at PATH
# Error message should point to extensions troubleshooting page
statement error
INSTALL will_never_exist FROM core;
----
For more info, visit https://duckdb.org/docs/stable/extensions/troubleshooting