# Addon cron jobs (test fixture)

addons.desc.integration.cron This is a **test fixture** used by the integration tests; it is not offered in the marketplace.

| Field | Value |
|---|---|
| Addon id | `integration-cron` |
| Kind | `integration` |
| Provides | `cron` |
| Engine | `wasm` |
| ABI | `0.5.0` |
| Version | 0.1.0 |
| Author | MythicalSystems |
| Source | `extensions/addons/fixture-cron` |
| Permissions (shown at install) | none |

## Capabilities

| Capability | Value |
|---|---|
| [`cron`](capabilities.md) | `[{"description":"Nightly cleanup","name":"nightly","schedule":"0 3 * * *"},{"name":"broken","schedule":"*/15 * * * *"}]` |
| [`cron_runtime`](capabilities.md) | true |
| [`routes`](capabilities.md) | `[{"access":"admin","method":"POST","path":"/cron","permission":"plugins.manage"}]` |

## Events and hooks

| What | Value |
|---|---|
| Listens to (`events`) | none |
| Hooks | none |
| Emits | none |
| Mixins | none |
| Filters | none |
| Scheduled jobs | none |

## Settings and secrets

No admin settings are declared in `addon.json` or in the source.

Secrets (stored encrypted, never returned by the API): none.

Outbound HTTP allowed to: none. `$server` is the hostname of the server configured for the product, `$setting:<key>` the host of that setting.

## HTTP routes

Mounted under `/api/v1/addons/integration-cron/`.

| Method | Path | Access | Permission |
|---|---|---|---|
| POST | `/cron` | admin | `plugins.manage` |

## addon.json

_extensions/addons/fixture-cron/addon.json_

```json
{
  "abi": "0.5.0",
  "author": "MythicalSystems",
  "capabilities": {
    "cron": [
      {
        "description": "Nightly cleanup",
        "name": "nightly",
        "schedule": "0 3 * * *"
      },
      {
        "name": "broken",
        "schedule": "*/15 * * * *"
      }
    ],
    "cron_runtime": true,
    "routes": [
      {
        "access": "admin",
        "method": "POST",
        "path": "/cron",
        "permission": "plugins.manage"
      }
    ]
  },
  "description": "addons.desc.integration.cron",
  "engine": "wasm",
  "id": "integration-cron",
  "kind": "integration",
  "name": "Addon cron jobs (test fixture)",
  "permissions": [],
  "provides": "cron",
  "settings": [],
  "version": "0.1.0",
  "wasm": "addon.wasm"
}
```

