Skip to content

Commit

Permalink
[Connectors API] Verify that last_seen was updated in the check-in in…
Browse files Browse the repository at this point in the history
…tegration tests (elastic#103194)

Extend the check-in integration tests to verify that last_seen was updated correctly after a check-in.
  • Loading branch information
timgrein authored Dec 11, 2023
1 parent dd0d9ec commit ce9e919
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ setup:
- skip:
version: " - 8.11.99"
reason: Introduced in 8.12.0
features: is_after
- do:
connector.put:
connector_id: test-connector
Expand All @@ -20,13 +21,26 @@ setup:
id: test-connector
job_type: full
trigger_method: on_demand

- set: { id: sync-job-id-to-check-in }

- do:
connector_sync_job.get:
connector_sync_job_id: $sync-job-id-to-check-in

- set: { last_seen: last_seen_before_check_in }

- do:
connector_sync_job.check_in:
connector_sync_job_id: $sync-job-id-to-check-in

- match: { acknowledged: true }

- do:
connector_sync_job.get:
connector_sync_job_id: $sync-job-id-to-check-in

- is_after: { last_seen: $last_seen_before_check_in }

---
"Check in a Connector Sync Job - Connector Sync Job does not exist":
Expand Down

0 comments on commit ce9e919

Please sign in to comment.