> 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/files/integrations/test.md).

# Test an integration

Test a files integration — Norbix uploads, reads, lists and deletes a small probe file.

**Where:** Files → Integrations → *integration* → **Test integration** · `/projects/<project>/files/integrations/<integrationId>/edit`

## Before you start

* The integration is saved — see [Providers](/codemash/cloud/files/integrations/providers.md). Before the first **Save** the panel says *Run test after successful save.*
* The test writes a small file into the storage and deletes it again, so the credentials need write and delete access.

## Steps

1. Open **Files → Integrations** and click the integration, or stay on the form right after **Save**. The badges show the state, for example **DEFAULT** · **ENABLED** · **NOT TESTED**.
2. Scroll to the bottom of the form and press **Test integration**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-7a244a5a0d582d3bbfe8face02201044e92ffb68%2Ftest-1.png?alt=media" alt="The Local integration Product images (folder acme/products) with the Test integration button at the bottom"><figcaption><p>The Test integration button.</p></figcaption></figure>

## Result

While the test runs the panel says *Running integration test, please wait…*. Then it shows **Test passed** (or **Test failed**) with the time of the run and one line per check — **UploadFile**, **GetFile**, **GetAllFiles**, **DeleteFile**. The badge becomes **TESTED** (or **TEST FAILED**). The test needs no input from you.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-62034a0ea7e60e44f3ffc281283a5f794d045dba%2Ftest-2.png?alt=media" alt="Editing Local integration with the badges DEFAULT, ENABLED, TESTED, the id int_45rkbZX4ecZBkiv6gXe5Da, and Test passed, Last run 10/6/2026, UploadFile Success"><figcaption><p>A passed test.</p></figcaption></figure>

When a check fails, the next checks are not run. Cloud still draws them as **Success** today — read only the first failed line; its red text is the real error, for example *Failed to create Google Cloud Storage client: Error deserializing JSON credential data.* The provider pages list the common errors.

## Change or remove it later

* Fix the field the error names, type the secret again, **Save**, and test again.
* [Set it as default](/codemash/cloud/files/integrations/set-default.md) once it passes.
* [Disable or delete it](/codemash/cloud/files/integrations/disable.md).

## Do it from code

```ts
const test = await norbix.hub.files.testFilesIntegration({ integrationId: 'int_45rkbZX4ecZBkiv6gXe5Da' });
console.log(test.items); // [ { operation: 'UploadFile', result: 'OK' }, { operation: 'GetFile', result: 'OK' }, … ]
// a failed check: { operation: 'UploadFile', result: 'FAILED', errors: [ '…' ] }, the rest: result 'NOT_TESTED'
```

```sh
norbix hub files integration test --integrationId int_45rkbZX4ecZBkiv6gXe5Da
```

The client setup is on the [Files page](/codemash/cloud/files.md#use-it-from-code). API: [Test Files Integration](/codemash/api-reference/files/integrations/test-files-integration.md)
