Skip to content

Commit

Permalink
internal: Add MoveResourceState capability to mux translation servers (
Browse files Browse the repository at this point in the history
  • Loading branch information
austinvalle authored Sep 17, 2024
1 parent 0c7d1ab commit 736530b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/tfprotov5tov6/tfprotov5tov6.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ func ServerCapabilities(in *tfprotov5.ServerCapabilities) *tfprotov6.ServerCapab

return &tfprotov6.ServerCapabilities{
GetProviderSchemaOptional: in.GetProviderSchemaOptional,
MoveResourceState: in.MoveResourceState,
PlanDestroy: in.PlanDestroy,
}
}
Expand Down
1 change: 1 addition & 0 deletions internal/tfprotov6tov5/tfprotov6tov5.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ func ServerCapabilities(in *tfprotov6.ServerCapabilities) *tfprotov5.ServerCapab

return &tfprotov5.ServerCapabilities{
GetProviderSchemaOptional: in.GetProviderSchemaOptional,
MoveResourceState: in.MoveResourceState,
PlanDestroy: in.PlanDestroy,
}
}
Expand Down
1 change: 1 addition & 0 deletions tf5muxserver/mux_server_GetMetadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ func TestMuxServerGetMetadata(t *testing.T) {
},
ServerCapabilities: &tfprotov5.ServerCapabilities{
GetProviderSchemaOptional: true,
MoveResourceState: true,
PlanDestroy: true,
},
},
Expand Down
1 change: 1 addition & 0 deletions tf5muxserver/mux_server_GetProviderSchema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ func TestMuxServerGetProviderSchema(t *testing.T) {
},
ServerCapabilities: &tfprotov5.ServerCapabilities{
GetProviderSchemaOptional: true,
MoveResourceState: true,
PlanDestroy: true,
},
},
Expand Down
1 change: 1 addition & 0 deletions tf6muxserver/mux_server_GetMetadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ func TestMuxServerGetMetadata(t *testing.T) {
},
ServerCapabilities: &tfprotov6.ServerCapabilities{
GetProviderSchemaOptional: true,
MoveResourceState: true,
PlanDestroy: true,
},
},
Expand Down

0 comments on commit 736530b

Please sign in to comment.