feat: add initial migration hook

This commit is contained in:
Damian Debkowski committed 2022-08-22 12:15:20 -07:00
1 parent 79866a287f
commit 27e9f775be
174 files changed
+4234 -2180

No files matched your search

+6 -6
View File
@@ -53,13 +53,13 @@ func TestTarget_ImmutableFields(t *testing.T) {
fieldMask: []string{"CreateTime"},
},
{
name: "scope_id",
name: "project_id",
update: func() *tcp.Target {
target := new.Clone().(*tcp.Target)
target.ScopeId = "o_thisIsNotAValidId"
target.ProjectId = "o_thisIsNotAValidId"
return target
}(),
fieldMask: []string{"ScopeId"},
fieldMask: []string{"ProjectId"},
},
}
for _, tt := range tests {
@@ -123,13 +123,13 @@ func TestTcpTarget_ImmutableFields(t *testing.T) {
fieldMask: []string{"CreateTime"},
},
{
name: "scope_id",
name: "project_id",
update: func() *tcp.Target {
target := new.Clone().(*tcp.Target)
target.ScopeId = "o_thisIsNotAValidId"
target.ProjectId = "o_thisIsNotAValidId"
return target
}(),
fieldMask: []string{"ScopeId"},
fieldMask: []string{"ProjectId"},
},
}
for _, tt := range tests {