> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/cloud/code/integrations/test.md).

# Test an integration

Test a Code provider integration — the test runs, but every provider answers that it is not wired up yet.

**Where:** Code → Integrations → an integration → **Test integration** · `/projects/<project>/code/integrations/<integrationId>/edit`

{% hint style="warning" %}
The test cannot pass yet. Norbix has no client for AWS Lambda, Azure Functions or Google Cloud Functions; every test answers *Provider '…' is not wired up yet* and the integration gets the **TEST FAILED** badge. The test does not reach your provider account, so it says nothing about your keys.
{% endhint %}

## Before you start

* A saved provider integration — see [Connect a provider](/codemash/cloud/code/integrations/providers.md).
* You need `code:read` on the integration.

## Steps

1. Open **Code → Integrations** and click the integration, here `Bookshop Azure`. Under the form is the test panel with **Run test after successful save** and **Test integration**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-3c36787478284d5f7c1b384649bab2a48859f47b%2Ftest-1.png?alt=media" alt="Editing Azure Functions integration Bookshop Azure with the badges ENABLED and NOT TESTED and the Test integration panel"><figcaption><p>The integration before the test.</p></figcaption></figure>
2. Press **Test integration**. The panel shows **Test failed**, the time of the run and one step: **AuthenticationCheck — Failed**, *Provider 'AzureFunctions' is not wired up yet.*

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-41bdd1f23fab4d2c010d42356063b692ee59426a%2Ftest-2.png?alt=media" alt="The test panel: Test failed, AuthenticationCheck Failed, Provider &#x27;AzureFunctions&#x27; is not wired up yet."><figcaption><p>The test result.</p></figcaption></figure>

## Result

The badge changes from **NOT TESTED** to **TEST FAILED**, and the result is kept with the integration (`lastIntegrationTestSucceeded: false`, `lastIntegrationTestErrors` in the API answer). Saving with **Run test after successful save** ticked runs the same test after each save.

## Change or remove it later

* Change a field and **Save** — see the provider page: [AWS Lambda](/codemash/cloud/code/integrations/providers/aws-lambda.md), [Azure Functions](/codemash/cloud/code/integrations/providers/azure-functions.md), [Google Cloud Functions](/codemash/cloud/code/integrations/providers/google-cloud-functions.md).
* **Disable** or **Delete** — see [Disable, enable or delete an integration](/codemash/cloud/code/integrations/disable.md).

## Do it from code

```ts
const result = await norbix.hub.code.testCodeIntegration({ integrationId: 'int_2vW8u1Vse9tSNuK7KgbmeV' });
// result.items: [{ operation: 'AuthenticationCheck', result: 'NOT_TESTED', errors: ["Provider 'AzureFunctions' is not wired up yet."] }]
```

```sh
norbix hub code integration test --integrationId int_2vW8u1Vse9tSNuK7KgbmeV
```

The answer from code says `NOT_TESTED` for the step; Cloud shows it as **Failed**. API: [Test Code Integration](/codemash/api-reference/code/integrations/test-code-integration.md)
