mirror of https://github.com/databricks/cli.git
parent
a7bf7ba6c5
commit
241562e2b1
|
@ -6,7 +6,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/databricks/bricks/cmd/root"
|
"github.com/databricks/bricks/cmd/root"
|
||||||
"github.com/databricks/bricks/git"
|
"github.com/databricks/bricks/libs/git"
|
||||||
"github.com/databricks/bricks/libs/sync"
|
"github.com/databricks/bricks/libs/sync"
|
||||||
"github.com/databricks/bricks/project"
|
"github.com/databricks/bricks/project"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
@ -22,7 +22,7 @@ func (r *testRepository) Ignore(relPath string) bool {
|
||||||
|
|
||||||
func TestRepository(t *testing.T) {
|
func TestRepository(t *testing.T) {
|
||||||
// Load this repository as test.
|
// Load this repository as test.
|
||||||
repo, err := NewRepository("..")
|
repo, err := NewRepository("../..")
|
||||||
tr := testRepository{t, repo}
|
tr := testRepository{t, repo}
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
@ -33,5 +33,5 @@ func TestRepository(t *testing.T) {
|
||||||
assert.True(t, tr.Ignore("vendor/"))
|
assert.True(t, tr.Ignore("vendor/"))
|
||||||
|
|
||||||
// Check that ignores under testdata work.
|
// Check that ignores under testdata work.
|
||||||
assert.True(t, tr.Ignore(filepath.Join("git", "testdata", "root.ignoreme")))
|
assert.True(t, tr.Ignore(filepath.Join("libs", "git", "testdata", "root.ignoreme")))
|
||||||
}
|
}
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/databricks/bricks/git"
|
"github.com/databricks/bricks/libs/git"
|
||||||
"github.com/databricks/bricks/libs/testfile"
|
"github.com/databricks/bricks/libs/testfile"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/databricks/bricks/git"
|
"github.com/databricks/bricks/libs/git"
|
||||||
"github.com/databricks/bricks/libs/sync/repofiles"
|
"github.com/databricks/bricks/libs/sync/repofiles"
|
||||||
"github.com/databricks/databricks-sdk-go"
|
"github.com/databricks/databricks-sdk-go"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/databricks/bricks/git"
|
"github.com/databricks/bricks/libs/git"
|
||||||
"github.com/databricks/databricks-sdk-go"
|
"github.com/databricks/databricks-sdk-go"
|
||||||
"github.com/databricks/databricks-sdk-go/service/commands"
|
"github.com/databricks/databricks-sdk-go/service/commands"
|
||||||
"github.com/databricks/databricks-sdk-go/service/scim"
|
"github.com/databricks/databricks-sdk-go/service/scim"
|
||||||
|
|
Loading…
Reference in New Issue