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:
Michael McGuinness
2025-06-03 13:52:10 +00:00
parent ae4b456399
commit 7ce7c9df4d
73 changed files with 295 additions and 326 deletions
+3 -4
View File
@@ -1,7 +1,6 @@
package query_test
import (
"context"
"errors"
"testing"
@@ -19,7 +18,7 @@ import (
)
func TestCreate(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -75,7 +74,7 @@ func TestCreate(t *testing.T) {
}
func TestCreateMinimal(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -114,7 +113,7 @@ func TestCreateMinimal(t *testing.T) {
}
func TestCreateRollback(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
+3 -4
View File
@@ -1,7 +1,6 @@
package query
import (
"context"
"testing"
"queryorchestration/internal/database/repository"
@@ -74,7 +73,7 @@ func TestParseCreateQueryInvalidType(t *testing.T) {
}
func TestSubmitCreate(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -126,7 +125,7 @@ func TestSubmitCreate(t *testing.T) {
}
func TestSubmitCreateNoReqsOrConfig(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -165,7 +164,7 @@ func TestSubmitCreateNoReqsOrConfig(t *testing.T) {
}
func TestNormalizeCreate(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
+2 -3
View File
@@ -1,7 +1,6 @@
package query_test
import (
"context"
"testing"
"time"
@@ -19,7 +18,7 @@ import (
)
func TestGet(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -149,7 +148,7 @@ func TestGetWithVersion(t *testing.T) {
Addedversion: latestVersion,
})
require.NoError(t, err)
ctx := context.Background()
ctx := t.Context()
svc := query.New(cfg)
+2 -3
View File
@@ -1,7 +1,6 @@
package query_test
import (
"context"
"testing"
"queryorchestration/internal/database/repository"
@@ -17,7 +16,7 @@ import (
)
func TestList(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -52,7 +51,7 @@ func TestList(t *testing.T) {
}
func TestListById(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
+1 -2
View File
@@ -1,7 +1,6 @@
package query
import (
"context"
"errors"
"testing"
@@ -70,7 +69,7 @@ func TestNormalizeConfig(t *testing.T) {
}
func TestNormalizeQueryIDs(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
+1 -2
View File
@@ -1,7 +1,6 @@
package result
import (
"context"
"testing"
"time"
@@ -140,7 +139,7 @@ func TestProcess(t *testing.T) {
}
func TestListRequiredValue(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
+2 -3
View File
@@ -1,7 +1,6 @@
package resultset
import (
"context"
"fmt"
"testing"
@@ -28,7 +27,7 @@ type ResultSetConfig struct {
}
func TestSet(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -121,7 +120,7 @@ func TestSet(t *testing.T) {
}
func TestInformQueryDependents(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
+2 -3
View File
@@ -1,7 +1,6 @@
package resultsync
import (
"context"
"fmt"
"testing"
@@ -22,7 +21,7 @@ type ResultSyncConfig struct {
}
func TestTriggerSync(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
cfg := &ResultSyncConfig{}
mockSQS := queuemock.NewMockSQSClient(t)
@@ -53,7 +52,7 @@ func TestTriggerSync(t *testing.T) {
}
func TestTriggerMultiSync(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
cfg := &ResultSyncConfig{}
mockSQS := queuemock.NewMockSQSClient(t)
+1 -2
View File
@@ -1,7 +1,6 @@
package querysync
import (
"context"
"fmt"
"testing"
@@ -25,7 +24,7 @@ type QuerySyncConfig struct {
}
func TestSync(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
cfg := &QuerySyncConfig{}
+1 -2
View File
@@ -1,7 +1,6 @@
package querytest_test
import (
"context"
"testing"
"queryorchestration/internal/collector"
@@ -20,7 +19,7 @@ import (
)
func TestTest(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -1,7 +1,6 @@
package contextfull_test
import (
"context"
"testing"
resultprocessor "queryorchestration/internal/query/result/processor"
@@ -13,7 +12,7 @@ import (
)
func TestContextFull(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
extractor := contextfull.NewExtractor()
@@ -1,7 +1,6 @@
package jsonextractor_test
import (
"context"
"fmt"
"testing"
@@ -19,7 +18,7 @@ import (
)
func TestJSONProcess(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -79,7 +78,7 @@ func TestJSONProcess(t *testing.T) {
}
func TestJSONProcessJSON(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
cfg := &serviceconfig.BaseConfig{}
@@ -128,7 +127,7 @@ func TestJSONProcessJSON(t *testing.T) {
}
func TestJSONProcessResults(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
cfg := &serviceconfig.BaseConfig{}
+1 -2
View File
@@ -1,7 +1,6 @@
package queryupdate_test
import (
"context"
"fmt"
"testing"
@@ -28,7 +27,7 @@ type QueryUpdateConfig struct {
}
func TestUpdate(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
+15 -16
View File
@@ -1,7 +1,6 @@
package queryupdate
import (
"context"
"errors"
"fmt"
"testing"
@@ -50,7 +49,7 @@ func TestGetUpdator(t *testing.T) {
}
func TestSubmitUpdate(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -101,7 +100,7 @@ func TestSubmitUpdate(t *testing.T) {
}
func TestSubmitUpdateRollback(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -136,7 +135,7 @@ func TestSubmitUpdateRollback(t *testing.T) {
func TestSubmitUpdateRequiredQueries(t *testing.T) {
t.Run("all fields", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -188,7 +187,7 @@ func TestSubmitUpdateRequiredQueries(t *testing.T) {
})
t.Run("all nil", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -228,7 +227,7 @@ func TestSubmitUpdateRequiredQueries(t *testing.T) {
}
func TestSubmitUpdateActiveVersion(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -274,7 +273,7 @@ func TestGetSetDifference(t *testing.T) {
func TestNormalizeUpdate(t *testing.T) {
t.Run("all fields to change", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -311,7 +310,7 @@ func TestNormalizeUpdate(t *testing.T) {
})
t.Run("no changes", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -336,7 +335,7 @@ func TestNormalizeUpdate(t *testing.T) {
})
t.Run("same active version", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -363,7 +362,7 @@ func TestNormalizeUpdate(t *testing.T) {
})
t.Run("ONLY active version to next latest", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -392,7 +391,7 @@ func TestNormalizeUpdate(t *testing.T) {
func TestNormalizeUpdateRequiredQueryIDs(t *testing.T) {
t.Run("Empty Array", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -420,7 +419,7 @@ func TestNormalizeUpdateRequiredQueryIDs(t *testing.T) {
})
t.Run("entry doesn't exist", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -450,7 +449,7 @@ func TestNormalizeUpdateRequiredQueryIDs(t *testing.T) {
assert.Error(t, err)
})
t.Run("in dependency tree", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
@@ -484,7 +483,7 @@ func TestNormalizeUpdateRequiredQueryIDs(t *testing.T) {
assert.Error(t, err)
})
t.Run("same update and current", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
cfg := &QueryUpdateConfig{}
@@ -525,7 +524,7 @@ func TestNormalizeUpdateRequiredQueryIDs(t *testing.T) {
func TestInformUpdate(t *testing.T) {
t.Run("nil active version", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
cfg := &QueryUpdateConfig{}
mockSQS := queuemock.NewMockSQSClient(t)
@@ -544,7 +543,7 @@ func TestInformUpdate(t *testing.T) {
require.NoError(t, err)
})
t.Run("update active version", func(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
cfg := &QueryUpdateConfig{}
mockSQS := queuemock.NewMockSQSClient(t)
+1 -2
View File
@@ -1,7 +1,6 @@
package queryversionsync
import (
"context"
"fmt"
"testing"
@@ -25,7 +24,7 @@ type QueryVersionSyncConfig struct {
}
func TestSync(t *testing.T) {
ctx := context.Background()
ctx := t.Context()
pool, err := pgxmock.NewPool()
require.NoError(t, err)
cfg := &QueryVersionSyncConfig{}