Page MenuHomePhabricator

Esha can deploy a wikifunctions environment
Open, Needs TriagePublic

Description

A/C

GIVEN Esha has access to the Catalyst API
WHEN Esha does a POST /environments
WITH the body

{
  "name": "foobar",
  "components": [
    {
      "name": "wikifunctions",
      "customizations": {
        wikilambdaRef: "refs/changes/86/968686/10"
      }
    }
  ]
}

THEN she gets a 200 OK
WITH the body

{
  "id": AUTO_GENERATED_ID,
  "name": "foobar",
  "components": [
    {
      "name": "wikifunctions",
      "status": "starting",
      "ingressUrls: [ "catalyst-foobar-AUTO_GENERATED_ID.wmcloud.org" ],
      "customizations": {
        wikilambdaRef: "refs/changes/86/968686/10"
      }
    }
  ]
}

GIVEN that Esha has POST /environments
WITH the body above
AND Esha has GET /environments/AUTO_GENERATED_ID
AND the body has components[0].status as "Running"
WHEN Esha visits "catalyst-foobar-AUTO_GENERATED_ID.wmcloud.org/wiki/Special:Version"
THEN she sees that the Wikifunctions environment is running the version of wikilambda she specified