fix immutable columns for session_state and session_connnection_state (#449)
This commit is contained in:
4 files changed
+24
-4
No files matched your search
@@ -119,6 +119,15 @@ func TestState_ImmutableFields(t *testing.T) {
|
||||
}(),
|
||||
fieldMask: []string{"PublicId"},
|
||||
},
|
||||
{
|
||||
name: "status",
|
||||
update: func() *State {
|
||||
s := new.Clone().(*State)
|
||||
s.Status = "active"
|
||||
return s
|
||||
}(),
|
||||
fieldMask: []string{"Status"},
|
||||
},
|
||||
{
|
||||
name: "start time",
|
||||
update: func() *State {
|
||||
@@ -258,6 +267,15 @@ func TestConnectionState_ImmutableFields(t *testing.T) {
|
||||
}(),
|
||||
fieldMask: []string{"PublicId"},
|
||||
},
|
||||
{
|
||||
name: "status",
|
||||
update: func() *ConnectionState {
|
||||
s := new.Clone().(*ConnectionState)
|
||||
s.Status = "closed"
|
||||
return s
|
||||
}(),
|
||||
fieldMask: []string{"Status"},
|
||||
},
|
||||
{
|
||||
name: "start time",
|
||||
update: func() *ConnectionState {
|
||||
|
||||
Reference in new issue
Block a user