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
+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)