Move integration test helpers to `integration/internal` (#2022)

## Changes

The `acc` package is exclusively used by integration tests, so it
belongs under `integration/internal`.

It's not the best name we can rename later.

## Tests

n/a
This commit is contained in:
Pieter Noordhuis 2024-12-17 08:45:58 +01:00 committed by GitHub
parent e60fe1bff2
commit d7eac598cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
36 changed files with 33 additions and 33 deletions

View File

@ -4,7 +4,7 @@ import (
"encoding/base64"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/dyn"
"github.com/databricks/cli/libs/dyn/convert"

View File

@ -12,7 +12,7 @@ import (
"github.com/databricks/cli/bundle/config"
"github.com/databricks/cli/bundle/config/resources"
"github.com/databricks/cli/bundle/libraries"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"

View File

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/google/uuid"
"github.com/stretchr/testify/require"

View File

@ -6,7 +6,7 @@ import (
"path/filepath"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/databricks-sdk-go/service/compute"
"github.com/google/uuid"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/databricks-sdk-go/service/dashboards"
"github.com/databricks/databricks-sdk-go/service/workspace"

View File

@ -11,7 +11,7 @@ import (
"testing"
"github.com/databricks/cli/cmd/root"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"

View File

@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/google/uuid"
"github.com/stretchr/testify/require"

View File

@ -7,7 +7,7 @@ import (
"testing"
"github.com/databricks/cli/bundle/deploy"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"
"github.com/google/uuid"

View File

@ -6,7 +6,7 @@ import (
"path/filepath"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/databricks-sdk-go/apierr"
"github.com/google/uuid"

View File

@ -6,7 +6,7 @@ import (
"path/filepath"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/google/uuid"
"github.com/stretchr/testify/require"
)

View File

@ -3,7 +3,7 @@ package bundle_test
import (
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/google/uuid"
"github.com/stretchr/testify/require"
)

View File

@ -9,7 +9,7 @@ import (
"strings"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"

View File

@ -9,7 +9,7 @@ import (
"strings"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"

View File

@ -11,7 +11,7 @@ import (
"testing"
"github.com/databricks/cli/bundle/config"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/iamutil"

View File

@ -10,7 +10,7 @@ import (
"github.com/databricks/cli/bundle/config"
"github.com/databricks/cli/bundle/metadata"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/filer"
"github.com/google/uuid"

View File

@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/databricks-sdk-go/listing"
"github.com/databricks/databricks-sdk-go/service/jobs"

View File

@ -3,7 +3,7 @@ package bundle_test
import (
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"
"github.com/google/uuid"

View File

@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/env"
"github.com/google/uuid"

View File

@ -6,7 +6,7 @@ import (
"regexp"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/databricks-sdk-go/listing"
"github.com/databricks/databricks-sdk-go/service/compute"

View File

@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/libs/filer"
"github.com/stretchr/testify/assert"

View File

@ -5,7 +5,7 @@ import (
"path"
"path/filepath"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/filer"

View File

@ -6,7 +6,7 @@ import (
"strconv"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/databricks-sdk-go"

View File

@ -6,7 +6,7 @@ import (
"fmt"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/databricks-sdk-go/service/workspace"

View File

@ -3,7 +3,7 @@ package storage_credentials_test
import (
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/stretchr/testify/assert"

View File

@ -15,7 +15,7 @@ import (
"testing"
"time"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/filer"

View File

@ -11,7 +11,7 @@ import (
"strings"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testcli"
"github.com/databricks/cli/libs/filer"
"github.com/databricks/databricks-sdk-go/service/workspace"

View File

@ -7,7 +7,7 @@ import (
"path"
"path/filepath"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/filer"

View File

@ -8,7 +8,7 @@ import (
"strings"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/libs/dbr"
"github.com/databricks/cli/libs/git"
"github.com/stretchr/testify/assert"

View File

@ -11,7 +11,7 @@ import (
"testing"
"time"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/filer"
lockpkg "github.com/databricks/cli/libs/locker"

View File

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/databricks-sdk-go/service/compute"
"github.com/databricks/databricks-sdk-go/service/jobs"

View File

@ -14,7 +14,7 @@ import (
"time"
"github.com/databricks/cli/bundle/run/output"
"github.com/databricks/cli/internal/acc"
"github.com/databricks/cli/integration/internal/acc"
"github.com/databricks/cli/internal/testutil"
"github.com/databricks/cli/libs/filer"
"github.com/databricks/databricks-sdk-go"