# Create a Snowflake Test Warehouse

## Overview

The test warehouse feature allows you to follow good software development practices by enabling you to test your code in a non-production environment before merging your changes into production.  Follow these steps to create your test warehouse

1. [Navigate to Warehouse](#navigate-to-the-warehouse-screen-in-the-daasity-app)
2. [Name and request provision your warehouse](#name-and-provision-your-test-warehouse)
3. [Check the warehouse provisioning is complete](#wait-for-the-warehouse-to-be-provisioned)
4. [Connect to your test warehouse](#connect-to-your-warehouse-and-use-it-for-testing)

Once you are done with the testing you should destroy your test warehouse

1. [Destroy your test warehouse](#destroying-your-test-warehouse)

## Navigate to the Warehouse screen in the Daasity App

<div align="left"><figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/BnsV3l44T8yTMT6x6YLr/Screenshot%202023-07-14%20at%208.43.55%20PM.png" alt="" width="229"><figcaption></figcaption></figure></div>

## Name & provision your test warehouse

Scroll to the **Test warehouse** section at the bottom of this screen.

In the **Test warehouse** section, add a name for your test warehouse. This will be the name of the warehouse that shows up in other sections of the app.

Then click **Provision Test Warehouse**.

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/rXzZ29ctzfQxQCbgyrhy/image.png" alt=""><figcaption></figcaption></figure>

## Wait for the warehouse to be provisioned

While the warehouse is being set up, you will see a screen similar to this one:

This means your test warehouse provisioning is in progress. The time it takes to complete provisioning will be dependent on the size of your production warehouse. Typically it will take between a few minutes and a half hour.

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/V0a9wAqvTk4h2Z1N4npD/image.png" alt=""><figcaption></figcaption></figure>

## Connect to your warehouse & use it for testing

Now that your test warehouse is set up, you can use it when testing [workflows](https://help.daasity.com/technical-docs/workflows-and-scheduling/getting-started-with-workflows).

If you need to access the test warehouse to query the data, use the connection details to connect to it directly from the snowflake console or through an IDE like DataGrip or Navicat.

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/cIaQ7jcjktoCWfjouxat/image.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Your test warehouse will last for one week before it is automatically removed.  You can extend the duration of the warehouse by clicking on the extend expiration button
{% endhint %}

## Destroying your test warehouse

Once you have completed your testing you should destroy your test warehouse by clicking on the Destroy Test Warehouse button

<figure><img src="https://content.gitbook.com/content/amTMWiPne1v1V3L7mbuj/blobs/M0WLPf277yl6ZtWyfTjX/image.png" alt=""><figcaption></figcaption></figure>
