Skip to content

Commit 736530b

Browse files
authored
internal: Add MoveResourceState capability to mux translation servers (#252)
1 parent 0c7d1ab commit 736530b

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

internal/tfprotov5tov6/tfprotov5tov6.go

+1
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ func ServerCapabilities(in *tfprotov5.ServerCapabilities) *tfprotov6.ServerCapab
626626

627627
return &tfprotov6.ServerCapabilities{
628628
GetProviderSchemaOptional: in.GetProviderSchemaOptional,
629+
MoveResourceState: in.MoveResourceState,
629630
PlanDestroy: in.PlanDestroy,
630631
}
631632
}

internal/tfprotov6tov5/tfprotov6tov5.go

+1
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ func ServerCapabilities(in *tfprotov6.ServerCapabilities) *tfprotov5.ServerCapab
702702

703703
return &tfprotov5.ServerCapabilities{
704704
GetProviderSchemaOptional: in.GetProviderSchemaOptional,
705+
MoveResourceState: in.MoveResourceState,
705706
PlanDestroy: in.PlanDestroy,
706707
}
707708
}

tf5muxserver/mux_server_GetMetadata_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ func TestMuxServerGetMetadata(t *testing.T) {
257257
},
258258
ServerCapabilities: &tfprotov5.ServerCapabilities{
259259
GetProviderSchemaOptional: true,
260+
MoveResourceState: true,
260261
PlanDestroy: true,
261262
},
262263
},

tf5muxserver/mux_server_GetProviderSchema_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,7 @@ func TestMuxServerGetProviderSchema(t *testing.T) {
763763
},
764764
ServerCapabilities: &tfprotov5.ServerCapabilities{
765765
GetProviderSchemaOptional: true,
766+
MoveResourceState: true,
766767
PlanDestroy: true,
767768
},
768769
},

tf6muxserver/mux_server_GetMetadata_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ func TestMuxServerGetMetadata(t *testing.T) {
257257
},
258258
ServerCapabilities: &tfprotov6.ServerCapabilities{
259259
GetProviderSchemaOptional: true,
260+
MoveResourceState: true,
260261
PlanDestroy: true,
261262
},
262263
},

0 commit comments

Comments
 (0)