---
id: TST-PFM-INT-589
title: publish automation rule
kind: integration
product_area: platform
module: integrations
revision: 1
status: draft
source_sha:
  services-platform: ad3f6a6582843008ed0f5a17b131878d15829af1
  macroservice-libraries: 54536a441935c6e09fdb7f96f0bec71c52ba4e03
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
repository: services-platform
files:
  - >-
    modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js
implements:
  - ATS-PFM-INT-020-03
  - ATS-PFM-INT-020-04
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 5
isolation: >-
  Use the suite-owned database fixtures and its declared cleanup; prepare the test database before
  integration or lifecycle execution.
evidence:
  - >-
    services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js
test_cases:
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#freezes
      the draft with the hash of its condition
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#records
      the publisher and the permissions the actions required
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#enables
      the rule with the version as its current one
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#refuses
      an event no application registers
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#refuses
      a condition over a fact the event does not declare
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#accepts
      the same condition over a declared fact (the negative control)
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#refuses
      an action configured at another trigger than the rule’s event
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#refuses
      a rule with no action
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#refuses
      an action of a type the registry does not know
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#refuses
      a publisher without the permission an action’s type requires
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#refuses
      a publisher without the automation key (403)
    provenance: test
  - source: >-
      services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js#answers
      every refusal as ObjectInvalid naming the first problem
    provenance: test
dependency_evidence:
  provenance: test
  source: >-
    services-platform:modules/workflow-actions/tests/integration/services/automation/publish-automation-rule.integration.spec.js
  reviewed:
    - Suite introduction
    - Fixture setup
    - Client substitutions
    - Assertions and cleanup
---
# publish automation rule

## Verification Boundary

This database and service suite exercises publish automation rule. Its registration records the executable definition; no run result is asserted.

## What This Suite Proves

The bindings identify the detailed outcomes asserted by this suite. Test-level evidence retains the individual checks, including cases where several suites contribute to one scenario.

## What It Does Not Prove

In-process execution does not establish deployed infrastructure or a real provider response. Several bindings can supply different parts of a detailed scenario; no single-file completeness is implied.

## Real Dependencies and Test Doubles

The suite definition identifies its database fixtures and replaced clients, hooks, clocks or executors. Integration runs use the prepared database; lifecycle runs exercise the in-process route or adapter path.

## Must Not Be Doubled

The database constraints, transactions and service behavior claimed by an integration binding must execute. Replaced external seams cannot establish live provider or infrastructure behavior.
