On this page
Kater CLI Share and administer admin connection
kater admin connection test
Checks that Kater can reach a connection's warehouse.
Signed in to Kater, it tests the sign-in that Kater stores, as Test connection on the connection’s page does, and Kater keeps the test as the connection’s last test. Run it after you change a connection’s settings or its sign-in.
Examples
# Check that Kater can reach the Snowflake warehousekater admin connection test snowflake_prod_connectionArguments
Options
It also takes the global options --json, --kater-root, --scope and --help.
What it reports
Each stage of a Snowflake test prints a line as it passes: find the account, sign in, use the warehouse and read the role. Then a sentence gives the account, the role and the warehouse of the session. A test that fails stops at its stage, says why, and exits with 2.
With --json, it prints the answer:
okis true. A test that fails prints an error instead.sessiongives what the warehouse said of the session, such as Snowflake’s account, warehouse, role and version.elapsed_mssays how long the test took, in milliseconds.warningis there when the stored sign-in has a different account, warehouse or role fromconnection.yaml. The connection’s page shows this as Sign-in does not match. Runkater admin connection sign-into store a sign-in that agrees.
A connection with no stored sign-in stops before the test. Run kater admin connection sign-in to add one. The test needs the settings:manage permission.
In a shell with no Kater API, the command stops. Run kater login. Your computer never holds a warehouse credential, so it cannot test a connection on its own.