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: service_test.go
    path of file: ./repos/lakeFS/pkg/actions
    
    the code of the file until where you have to start completion: package actions_test

import (
	"bytes"
	"context"
	"encoding/json"
	"errors"
	"fmt"
	"io"
	"net/http"
	"net/http/httptest"
	"os"
	"strconv"
	"strings"
	"testing"
	"time"

	"github.com/go-test/deep"
	"github.com/golang/mock/gomock"
	"github.com/stretchr/testify/require"
	"github.com/treever
    
func TestMissingEnvVar(t *testing.T) {
	ctx := context.Background()
	testOutputWriter, ctrl, _, record := setupTest(t)

	actionContent := `name: test action
on:
  pre-commit: {}
hooks:
  - id: airflow_hook_id
    type: airflow
    properties:
      url: "http://wontsendrequesthere/airflow"
      dag_id: "some_dag_id"
      username: "some_username"
      password: "{{ ENV.NEW_AIRFLOW_PASSWORD }}"
      dag_conf:
        some: "additional_conf"
`

	tests := []struct {
		name           string
		actionsService getService
	}{
		{
			name:           "KV service test",
			actionsService: GetKVService,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			testSource := mock.NewMockSource(ctrl)
			testSource.EXPECT().
				List(ctx, record).
				Return([]string{"act.yaml"}, nil)
			testSource.EXPECT().
				Load(ctx, record, "act.yaml").
				Return([]byte(actionContent), nil)

			// run actions
			mockStatsCollector := NewActionStatsMockCollector()
			actionsService := tt.actionsService(t, ctx, testSource, testOutputWriter, &mockStatsCollector, true)
			defer actionsService.Stop()

			require.Error(t, actionsService.Run(ctx, record))
			require.Equal(t, 0, mockStatsCollector.Hits["pre-commit"])
		})
	}
}