Commit e9e2b6bb authored by pfandzelter's avatar pfandzelter
Browse files

Tp/fix dynamo keygroup triggers

parent 3c77304b
Pipeline #111169 passed with stages
in 13 minutes and 53 seconds
......@@ -847,6 +847,9 @@ func (s *Storage) CreateKeygroup(kg string) error {
keyName: &dynamoDBTypes.AttributeValueMemberS{
Value: NULLValue,
},
triggerName: &dynamoDBTypes.AttributeValueMemberM{
Value: map[string]dynamoDBTypes.AttributeValue{},
},
},
TableName: aws.String(s.dynamotable),
}
......
......@@ -549,6 +549,14 @@ func TestTriggerNodes(t *testing.T) {
assert.NoError(t, err)
tList, err := db.GetKeygroupTrigger(kg)
assert.NoError(t, err)
log.Debug().Msgf("List of keygroup triggers: %+v", tList)
assert.Len(t, tList, 0)
t1 := "t1"
t1host := "1.1.1.1:3000"
......@@ -570,7 +578,7 @@ func TestTriggerNodes(t *testing.T) {
assert.NoError(t, err)
tList, err := db.GetKeygroupTrigger(kg)
tList, err = db.GetKeygroupTrigger(kg)
assert.NoError(t, err)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment