KKIMS on-site docs
Deploy KIMS (UAT and production)

Acceptance checks

The checks that prove an environment works end to end, with how to run each one, what you should see, and what differs between UAT and production. Do them with KIMS beside you and keep the results.

Run these on each environment once deploy/website is done, including the first publish. With UAT, finish UAT's checks before you start production's. Do them with KIMS's people watching and write the result of each row down; the table at the end is a ready-made record.

#Before you start

You need four browser profiles or private windows, one per person:

Person Keycloak CMS People screen
The first Admin cms-access Admin
A test editor cms-access editor
A test reviewer cms-access reviewer
A KIMS account with no cms-access none none

On production, use real KIMS accounts for the editor and reviewer, or test accounts KIMS creates. Remove what you added afterwards (Clean up).

#The platform

#Check 1: the pods and the health checks

bash
kubectl -n <NAMESPACE> get pods
kubectl -n <NAMESPACE> get cronjobs
curl -s https://<CMS_HOST>/api/health; echo
curl -s "https://<CMS_HOST>/api/health?check=ready"; echo
bash
kubectl -n <NAMESPACE> get pods
kubectl -n <NAMESPACE> get cronjobs
curl -s https://<CMS_HOST>/api/health; echo
curl -s "https://<CMS_HOST>/api/health?check=ready"; echo
powershell
kubectl -n <NAMESPACE> get pods
kubectl -n <NAMESPACE> get cronjobs
curl.exe -s https://<CMS_HOST>/api/health
curl.exe -s "https://<CMS_HOST>/api/health?check=ready"

Expected: every kims-cms and kims-worker pod 1/1 Running, five CronJobs, then:

text
{"status":"ok"}
{"status":"ready","database":"ok"}

#Check 2: no alerts from the alerts task

bash
kubectl -n <NAMESPACE> logs -l kims.org/cron-task=alerts --tail=-1 | grep '"level":"alert"'
bash
kubectl -n <NAMESPACE> logs -l kims.org/cron-task=alerts --tail=-1 | grep '"level":"alert"'
powershell
kubectl -n <NAMESPACE> logs -l kims.org/cron-task=alerts --tail=-1 | Select-String '"level":"alert"'

The alerts CronJob runs every 15 minutes and keeps its last finished pod for up to an hour, so this reads the most recent run. Each alert is logged once per condition.

Expected: no output (or No resources found if no run has finished in the last hour). Any alert line is something to read before going on.

#Sign-in and access

#Check 3: the Admin signs in

The first Admin opens https://<CMS_HOST>. Expected: Keycloak's sign-in, then the Dashboard.

#Check 4: no cms-access means no access

The account without cms-access opens https://<CMS_HOST> and signs in. Expected: the CMS's "no access" page, and nothing else of the CMS.

#The editing and publishing chain

#Check 5: an editor submits, a reviewer approves

  1. The test editor opens any page (for example a doctor), changes something harmless (a full stop in a sentence), saves, and submits it for review.
  2. The test reviewer opens it from the review queue and approves it.

Expected: the change appears on Publishing.

#Check 6: nobody approves their own change

  1. The test editor makes a second harmless change and submits it.
  2. The same editor (or an Admin who made the change) tries to approve it.

Expected: refused. Have the reviewer reject or approve it afterwards so nothing is left waiting.

#Check 7: the Admin publishes

An Admin publishes from Publishing.

Expected on Builds: the publish, then a Jenkins build started by itself, then live about 15 minutes later. In Jenkins, the run's parameters show CAUSE publish and the new PUBLISH_VERSION.

#Check 8: the change is on the website

Open the changed page on the website (production before go-live: on https://<DISTRIBUTION_DOMAIN>). Expected: the change is there without a hard refresh (the build invalidated CloudFront).

#The website

#Check 9: pages other than the home page, other languages, 404

Run the commands in deploy/website.

Expected:

Address Expected
/bengaluru/doctors/ 200, the page. An error means the viewer-request function is not attached
/kn/, /hi/ 200
/no-such-page/ 404, and in a browser the site's own 404 page
/robots.txt UAT: Disallow: /. Production: allows crawling and names the sitemap (or Disallow: / while SITE_NOINDEX=true before launch)
/sitemap.xml 200

#Revocation

#Check 10: signing out in Keycloak ends the CMS session

  1. The test editor has the CMS open.
  2. A Keycloak admin opens Users > the editor > Sessions > Sign out (or Logout) on their session.
  3. The editor clicks anything in the CMS.

Expected: the editor is sent to sign-in, within seconds.

#Check 11: disabling or removing cms-access ends it within 5 minutes

  1. The test editor signs in again and keeps the CMS open.
  2. A Keycloak admin removes cms-access from them (Users > the editor > Role mapping > tick cms-access > Unassign), or switches Enabled off on Details.
  3. Wait up to 5 minutes, then the editor clicks anything.

Expected: sign-in, then the "no access" page (or Keycloak refusing a disabled account). Give the role back (or enable them) if the account is needed again.

#Media

#Check 12: an upload gets its sizes

An Admin or editor uploads an image in the Media library. Expected: its sizes appear within a minute (the worker makes them). If they never do, read kubectl -n <NAMESPACE> logs deploy/kims-worker; usually the pods' IAM role cannot write the assets bucket (aws/iam).

#Google (if set up)

Check Expected
Translation screen shows the key as working google/translation-api-key
Google reviews screen shows connected, then a sync google/reviews-oauth
GTM tag in the page source (only if GTM_ID is set) google/tag-manager

#Clean up after the checks

On production:

  1. Revert each harmless change (open the page's version history, restore the version before it, submit, approve, publish), or ask KIMS whether to keep it.
  2. Delete the test image from the Media library if it is not wanted.
  3. Remove the test accounts from the People screen.
  4. In Keycloak, unassign cms-access from the test accounts (or ask KIMS to delete them).

On UAT this is optional; test data there is expected.

#UAT and production

UAT Production
When First, before any production step After UAT is accepted, before go-live
Website checked on The UAT host https://<DISTRIBUTION_DOMAIN> until go-live, then https://<SITE_HOST> again
Accounts Test accounts are fine Real or KIMS-made test accounts, removed afterwards
Content changes Leave them Revert them
robots.txt Disallow: / Allows crawling (unless held back)

#The record

# Check UAT result Production result Who saw it
1 Pods and health
2 No alerts
3 Admin signs in
4 No cms-access, no access
5 Edit, submit, approve
6 Own approval refused
7 Publish starts a build, live
8 Change on the website
9 Pages, languages, 404, robots
10 Keycloak sign-out
11 Role removed or disabled
12 Upload sizes

#Sources

Built 2026-11-29. Commands are shown for the system picked at the top; every block has all three.