Skip to content

Commit d3549e1

Browse files
authored
Prep for v0.19.0 release + add source schema version to mux translation (#300)
* move changelogs * add source identity schema
1 parent 14df506 commit d3549e1

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
lines changed
File renamed without changes.
File renamed without changes.

internal/tfprotov5tov6/tfprotov5tov6.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,14 @@ func MoveResourceStateRequest(in *tfprotov5.MoveResourceStateRequest) *tfprotov6
463463
}
464464

465465
return &tfprotov6.MoveResourceStateRequest{
466-
SourcePrivate: in.SourcePrivate,
467-
SourceProviderAddress: in.SourceProviderAddress,
468-
SourceSchemaVersion: in.SourceSchemaVersion,
469-
SourceState: RawState(in.SourceState),
470-
SourceTypeName: in.SourceTypeName,
471-
TargetTypeName: in.TargetTypeName,
472-
SourceIdentity: RawState(in.SourceIdentity),
466+
SourcePrivate: in.SourcePrivate,
467+
SourceProviderAddress: in.SourceProviderAddress,
468+
SourceSchemaVersion: in.SourceSchemaVersion,
469+
SourceState: RawState(in.SourceState),
470+
SourceTypeName: in.SourceTypeName,
471+
TargetTypeName: in.TargetTypeName,
472+
SourceIdentity: RawState(in.SourceIdentity),
473+
SourceIdentitySchemaVersion: in.SourceIdentitySchemaVersion,
473474
}
474475
}
475476

internal/tfprotov5tov6/tfprotov5tov6_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,7 @@ func TestMoveResourceStateRequest(t *testing.T) {
13601360
SourceIdentity: &tfprotov5.RawState{
13611361
JSON: testBytes,
13621362
},
1363+
SourceIdentitySchemaVersion: 1,
13631364
},
13641365
expected: &tfprotov6.MoveResourceStateRequest{
13651366
SourcePrivate: testBytes,
@@ -1373,6 +1374,7 @@ func TestMoveResourceStateRequest(t *testing.T) {
13731374
SourceIdentity: &tfprotov6.RawState{
13741375
JSON: testBytes,
13751376
},
1377+
SourceIdentitySchemaVersion: 1,
13761378
},
13771379
},
13781380
}

internal/tfprotov6tov5/tfprotov6tov5.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,14 @@ func MoveResourceStateRequest(in *tfprotov6.MoveResourceStateRequest) *tfprotov5
497497
}
498498

499499
return &tfprotov5.MoveResourceStateRequest{
500-
SourcePrivate: in.SourcePrivate,
501-
SourceProviderAddress: in.SourceProviderAddress,
502-
SourceSchemaVersion: in.SourceSchemaVersion,
503-
SourceState: RawState(in.SourceState),
504-
SourceTypeName: in.SourceTypeName,
505-
TargetTypeName: in.TargetTypeName,
506-
SourceIdentity: RawState(in.SourceIdentity),
500+
SourcePrivate: in.SourcePrivate,
501+
SourceProviderAddress: in.SourceProviderAddress,
502+
SourceSchemaVersion: in.SourceSchemaVersion,
503+
SourceState: RawState(in.SourceState),
504+
SourceTypeName: in.SourceTypeName,
505+
TargetTypeName: in.TargetTypeName,
506+
SourceIdentity: RawState(in.SourceIdentity),
507+
SourceIdentitySchemaVersion: in.SourceIdentitySchemaVersion,
507508
}
508509
}
509510

internal/tfprotov6tov5/tfprotov6tov5_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,6 +1501,7 @@ func TestMoveResourceStateRequest(t *testing.T) {
15011501
SourceIdentity: &tfprotov6.RawState{
15021502
JSON: testBytes,
15031503
},
1504+
SourceIdentitySchemaVersion: 1,
15041505
},
15051506
expected: &tfprotov5.MoveResourceStateRequest{
15061507
SourcePrivate: testBytes,
@@ -1514,6 +1515,7 @@ func TestMoveResourceStateRequest(t *testing.T) {
15141515
SourceIdentity: &tfprotov5.RawState{
15151516
JSON: testBytes,
15161517
},
1518+
SourceIdentitySchemaVersion: 1,
15171519
},
15181520
},
15191521
}

0 commit comments

Comments
 (0)