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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments