serviceoperations

command
v1.0.0-beta2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Hub maintenance

Warning: This sample performs hub-wide cleanup and can delete data outside its own instances. Use a test hub, not production or valuable application data.

Run

Use a DTS service that actually implements the operations below:

export DTS_CONNECTION_STRING='Endpoint=https://<scheduler-host>;TaskHub=<hub>;Authentication=DefaultAzure'
go run ./samples/serviceoperations

No special hub name or additional opt-in variable is required. The sample does not provision Azure resources or change permissions.

What it proves

  • Filtered purge: three completed subjects must become unreadable.
  • Entity maintenance: empty state must be absent afterward and a nonempty entity must remain unchanged. If a transient record exists before cleanup, the sample also requires a reported removal and verifies that record disappears.

Checks are bounded and failures are reported by operation. Cleanup of the sample's instances uses their generated IDs; the demonstrated filter and entity maintenance APIs act across the selected hub.

SAMPLE_OK serviceoperations is printed only if every operation and cleanup succeeds. Unsupported APIs and success responses with no observable state change produce a nonzero exit, not coverage. The current DTS emulator has known limitations; see the feature matrix. Some services eagerly remove empty entity records. The output explicitly reports that case: it validates idempotency and live-state preservation, not a removal that did not happen. It never claims a nonzero removal count for an empty set.

Skip-graceful termination is intentionally not supported.

Documentation

Overview

Command serviceoperations verifies hub-wide purge and entity maintenance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL