Skip to content

Commit

Permalink
BATS workaround the failure to fetch k3s-versions.json
Browse files Browse the repository at this point in the history
See #7853

You need to copy k3s-versions.json into the BATS directory to
activate the workaround.

Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed Dec 4, 2024
1 parent c7b51f3 commit 3778dce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bats/tests/helpers/vm.bash
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ launch_the_application() {
local args=("$@")
trace "$*"

# TODO workaround for https://github.com/rancher-sandbox/rancher-desktop/issues/7853
local k3s_versions="k3s-versions.json"
if [ -f "$PATH_BATS_ROOT/$k3s_versions" ]; then
create_file "$PATH_CACHE/$k3s_versions" <"$PATH_BATS_ROOT/$k3s_versions"
fi

if using_dev_mode; then
# translate args back into the internal API format
local api_args=()
Expand Down

0 comments on commit 3778dce

Please sign in to comment.