$ENV
{
'PROPHET_REPO'
} = tempdir(
CLEANUP
=> !
$ENV
{PROPHET_DEBUG} ) .
'/repo-'
. $$;
(
undef
,
my
$error
) = run_command(
'clone'
,
'--from'
,
'malformed-url'
);
is(
$error
,
<<EOM
I don't know how to handle the replica URL you provided - 'malformed-url'.
Is your syntax correct?
EOM
,
'malformed url errors out'
);
$ENV
{
'PROPHET_REPO'
} = tempdir(
CLEANUP
=> !
$ENV
{PROPHET_DEBUG} ) .
'/repo-'
. $$;
(
undef
,
$error
) = run_command(
'clone'
,
'--from'
,
'sqlite:foo'
);
like(
$error
,
qr{.*I couldn't determine a filesystem root from the given URL\.
}
,
'sqlite:foo errors out'
);
$ENV
{
'PROPHET_REPO'
} = tempdir(
CLEANUP
=> !
$ENV
{PROPHET_DEBUG} ) .
'/repo-'
. $$;
like(
$error
,
qr{.*I couldn't determine a filesystem root from the given URL\.
$ENV
{
'PROPHET_REPO'
} = tempdir(
CLEANUP
=> !
$ENV
{PROPHET_DEBUG} ) .
'/repo-'
. $$;
(
undef
,
$error
)
like(
$error
,
qr{.*I couldn't determine a filesystem root from the given URL\.
}
,
'SQLite replicas can\'t be via http'
);
$ENV
{
'PROPHET_REPO'
} = tempdir(
CLEANUP
=> !
$ENV
{PROPHET_DEBUG} ) .
'/repo-'
. $$;
(
undef
,
$error
) = run_command(
'clone'
,
like(
$error
,
'prophet replicas *can* be via http'
,
);