Merged in feature/ecr (pull request #161)
Feature/ecr * nosave * repo * awscli * unzip * ignore * moreram * 14k * ref * deployment * 12k * uselocal * go * dockercomd * reorder * iamgename * installs * tart * cli * clideps * y * dockerce * nodock * multi * rmecr * dev
This commit is contained in:
@@ -20,7 +20,7 @@ func TestListClientDocumentIDs(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.SkipNow()
|
||||
}
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -197,7 +197,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("no collector", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -218,7 +218,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("no documents", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -247,7 +247,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("create document", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -282,7 +282,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("document fail clean", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -318,7 +318,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("clean document", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -360,7 +360,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("extracted text", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -400,7 +400,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("single query", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -430,7 +430,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("change super query", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -460,7 +460,7 @@ func TestClientSync(t *testing.T) {
|
||||
})
|
||||
t.Run("upstream query update result", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -504,7 +504,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("update upstream query", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -564,7 +564,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("update text entry", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -602,7 +602,7 @@ func TestClientSync(t *testing.T) {
|
||||
})
|
||||
t.Run("update text entry result", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -648,7 +648,7 @@ func TestClientSync(t *testing.T) {
|
||||
})
|
||||
t.Run("update clean entry", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -689,7 +689,7 @@ func TestClientSync(t *testing.T) {
|
||||
})
|
||||
t.Run("update clean entry with result", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -756,7 +756,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("add new collector version", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -781,7 +781,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("add new active collector version", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -812,7 +812,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("remove query from new collector version", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -843,7 +843,7 @@ func TestClientSync(t *testing.T) {
|
||||
})
|
||||
t.Run("remove query and update collector version", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -881,7 +881,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("add existing query", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -911,7 +911,7 @@ func TestClientSync(t *testing.T) {
|
||||
|
||||
t.Run("add super query", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -940,7 +940,7 @@ func TestClientSync(t *testing.T) {
|
||||
})
|
||||
t.Run("add super query with result", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := context.Background()
|
||||
ctx := t.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(t, cfg)
|
||||
@@ -1102,7 +1102,7 @@ func createDocumentWithCollectorAndResults(t testing.TB, queries *repository.Que
|
||||
}
|
||||
|
||||
func BenchmarkIsClientSynced(b *testing.B) {
|
||||
ctx := context.Background()
|
||||
ctx := b.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(b, cfg)
|
||||
@@ -1121,7 +1121,7 @@ func BenchmarkIsClientSynced(b *testing.B) {
|
||||
}
|
||||
|
||||
func BenchmarkGetDocumentExternal(b *testing.B) {
|
||||
ctx := context.Background()
|
||||
ctx := b.Context()
|
||||
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
test.CreateDB(b, cfg)
|
||||
|
||||
Reference in New Issue
Block a user