test-git-fcz5-handler/README.md

1.2 KiB

test-git-fcz5-handler

Purpose

Test serverless app for backward compatibility testing of conductor's new serverlessConfig feature.

boltic.yaml Format

This app uses the OLD format (no serverlessConfig section).

Test Scenario

Before Deploying New Conductor Code:

  1. Create this serverless app
  2. Push this code to git
  3. Wait for successful build & deploy
  4. From UI, configure:
    • Scaling: Min=2, Max=5, AutoStop=false
    • Env: UI_TEST_VAR=from-ui, API_KEY=secret123
    • PortMap: Port=9000 (if needed)
  5. Note down all settings

After Deploying New Conductor Code:

  1. Make a small code change (e.g., update version in handler.js)
  2. Push to git
  3. Wait for build & deploy
  4. Verify:
    • All UI settings should be PRESERVED
    • Scaling should still be Min=2, Max=5
    • Env vars should still have UI_TEST_VAR and API_KEY
    • No serverlessConfig = No overrides applied

Expected Result

All UI-configured settings remain unchanged after push.

Files

  • boltic.yaml - OLD format config (no serverlessConfig)
  • handler.js - Node.js handler function
  • package.json - Node.js project config
  • Dockerfile - Build configuration
  • .gitignore - Git ignore rules