You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: setup.go
    path of file: ./repos/cerbos/internal/test/e2e
    
    the code of the file until where you have to start completion: // Copyright 2021-2024 Zenauth Ltd.
// SPDX-License-Identifier: Apache-2.0

//go:build e2e

package e2e

import (
	"crypto/tls"
	"fmt"
	"net/http"
	"time"

	"github.com/go-cmd/cmd"
)

func Setup(ctx Ctx) error {
	ctx.Logf("Setup for context %q (%+v)", ctx.ContextID, ctx.Config)

	// `helmfile apply` requires `helm diff`. `helmfile init` checks for required plugins
	if err := Cmd(ctx, "h
    
func checkCerbosIsUp(ctx Ctx) func() error {
	customTransport := http.DefaultTransport.(*http.Transport).Clone()
	customTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} //nolint:gosec

	client := &http.Client{Transport: customTransport}
	healthURL := ctx.HealthURL()

	return func() error {
		ctx.Logf("Checking whether Cerbos is up")
		resp, err := client.Get(healthURL)
		if err != nil {
			ctx.Logf("Error during healthcheck: %v", err)
			return err
		}
		if resp.StatusCode != http.StatusOK {
			ctx.Logf("Received health status: %q", resp.Status)
			return fmt.Errorf("received status %q", resp.Status)
		}

		return nil
	}
}