@intentius/chant-lexicon-azure 0.124.39 → 0.124.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import { describe, test, expect } from "vitest";
2
2
  import { azurePlugin } from "./plugin";
3
3
  import { isLexiconPlugin } from "@intentius/chant/lexicon";
4
+ import { emulatorsOf, endpointEnvVars } from "@intentius/chant/op";
4
5
 
5
6
  describe("azurePlugin", () => {
6
7
  // -----------------------------------------------------------------------
@@ -233,3 +234,12 @@ describe("azurePlugin", () => {
233
234
  expect(ids).toContain("AZR011");
234
235
  });
235
236
  });
237
+
238
+ // #4281: `chant components pr-plan`, `pr-apply` and `run --components` apply an
239
+ // environment's declared endpoint to the vars the plugin's emulator names. `arm-deploy`
240
+ // reads AZURE_ENDPOINT_URL, so the plugin has to name it.
241
+ describe("azurePlugin endpoint var (#4281)", () => {
242
+ test("the emulator names AZURE_ENDPOINT_URL, the var arm-deploy reads", () => {
243
+ expect(emulatorsOf(azurePlugin.emulator).flatMap((cap) => endpointEnvVars(cap))).toEqual(["AZURE_ENDPOINT_URL"]);
244
+ });
245
+ });