Skip to content

Added e2e_test_klime#2

Draft
beatlevic wants to merge 1 commit intofeat/add-klime-destinationfrom
add-klime-destination-e2e-test
Draft

Added e2e_test_klime#2
beatlevic wants to merge 1 commit intofeat/add-klime-destinationfrom
add-klime-destination-e2e-test

Conversation

@beatlevic
Copy link

Added e2e test for klime template. Run with:

.venv/bin/python posthog/cdp/templates/klime/e2e_test_klime.py "<write key>" --endpoint http://ingest.klime.dev

Example output of success:

Klime E2E test against http://ingest.klime.dev
Write key: 756660ea...

--- Track event ---
  [OK] http://ingest.klime.dev/v1/batch -> 200
  Response: {
  "status": "ok",
  "accepted": 1,
  "failed": 0
}

--- Identify event (automatic) ---
  [OK] http://ingest.klime.dev/v1/batch -> 200
  Response: {
  "status": "ok",
  "accepted": 1,
  "failed": 0
}

--- Group event (automatic) ---
  [OK] http://ingest.klime.dev/v1/batch -> 200
  Response: {
  "status": "ok",
  "accepted": 1,
  "failed": 0
}

--- Track with all properties (filters $-prefixed) ---
  [OK] http://ingest.klime.dev/v1/batch -> 200
  Response: {
  "status": "ok",
  "accepted": 1,
  "failed": 0
}

--- Identify without userId (should skip) ---
  [hog print] ('No user ID set. Skipping as user ID is required for identify events.',)
  (no HTTP call made — skipped by Hog code)

--- Auth failure (bad write key) ---
  [OK] Error raised: Error('Error from Klime API: 401: {\'error\': \'unauthorized\', \'message\': \'invalid write key\'}')

@beatlevic beatlevic requested a review from sborsje February 11, 2026 13:04
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, please remove the stale label – otherwise this will be closed in another week. If you want to permanently keep it open, use the waiting label.

@github-actions github-actions bot added the stale label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant