fix(aihr): scope pilot gates by tenant
This commit is contained in:
@@ -22,6 +22,7 @@ assert_not_contains() {
|
||||
|
||||
assert_contains 'AIHR_PILOT_START_DATE'
|
||||
assert_contains 'AIHR_PILOT_END_DATE'
|
||||
assert_contains 'AIHR_PILOT_TENANT_ID'
|
||||
assert_contains 'AIHR_DEMO_CHECK_LIBRARY_ONLY'
|
||||
assert_contains 'safe_org AS'
|
||||
assert_contains 'HAVING SUM(s.session_count) >= 10'
|
||||
@@ -151,6 +152,9 @@ pilot_output="$(AIHR_PILOT_START_DATE=2026-07-07 AIHR_PILOT_END_DATE=2026-07-10
|
||||
[[ "$pilot_output" == *'sop_usable=1/1 sop_pending=1'* ]] || { echo "FAIL: SOP window: $pilot_output" >&2; exit 1; }
|
||||
[[ "$pilot_output" == *'satisfaction=5.0/5 responses=19'* ]] || { echo "FAIL: safe satisfaction identity scope: $pilot_output" >&2; exit 1; }
|
||||
|
||||
override_output="$(AIHR_PILOT_TENANT_ID=other AIHR_PILOT_START_DATE=2026-07-07 AIHR_PILOT_END_DATE=2026-07-10 check_pilot_samples)"
|
||||
[[ "$override_output" == *'scenarios=0/12'* ]] || { echo "FAIL: pilot tenant override was ignored: $override_output" >&2; exit 1; }
|
||||
|
||||
pilot_sql_scalar "INSERT INTO aihr_practice_session (tenant_id, session_id, ext_party_id, mode, finished_time, satisfaction_score) VALUES ('000000','e-10','13900000005','mobile','2026-07-09 09:00:00',5)" >/dev/null
|
||||
pilot_output="$(AIHR_PILOT_START_DATE=2026-07-07 AIHR_PILOT_END_DATE=2026-07-10 check_pilot_samples)"
|
||||
[[ "$pilot_output" == *'org_ten_sessions=2/2'* ]] || { echo "FAIL: formal 10/10 boundary: $pilot_output" >&2; exit 1; }
|
||||
|
||||
Reference in New Issue
Block a user