From 8874d0be866059394dd5c2fc87c34c11a8049d85 Mon Sep 17 00:00:00 2001 From: Zhihe Li Date: Tue, 10 Dec 2024 12:30:57 -0500 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20Add=20to=20readme?= =?UTF-8?q?=20how=20to=20run=20admin=20e2e=20against=20local=20branch=20(#?= =?UTF-8?q?2616)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: ✏️ Add to readme how to run admin e2e against local branch * chore: 🤖 Add packageManager field for corepack users --- e2e-tests/README.md | 13 +++++++++++++ package.json | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/e2e-tests/README.md b/e2e-tests/README.md index abacd6691..360e4566f 100644 --- a/e2e-tests/README.md +++ b/e2e-tests/README.md @@ -97,6 +97,19 @@ Enos needs some configuration variables to run the scenario successfully. [See t More documentation about [scenario variables](https://github.com/hashicorp/boundary/tree/main/enos#scenarios-variables). +> [!TIP] +> To run e2e tests against a local branch for Admin UI, update the UI commit in boundary so it gets picked up when enos builds the binary + +By default, enos will build the version of the UI that is specified in the `VERSION` commit for `boundary`. To use a specific branch, update the version first before running the scenario. + +In the `boundary` or `boundary-enterprise` repository: +```bash +UI_COMMITISH= make update-ui-version + +# Alternatively if you want to just be able to run the same command for the most recent commit +UI_COMMITISH=$(git -C rev-parse HEAD) make update-ui-version +``` + ## Run tests: Before running the e2e test locally, we need to launch an Enos Scenario. Make sure you followed all the steps within the [Getting started section](#getting-started). diff --git a/package.json b/package.json index bbe1b1258..d5167826f 100755 --- a/package.json +++ b/package.json @@ -63,5 +63,6 @@ }, "engines": { "node": "18.* || 20.*" - } + }, + "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" }