@@ -204,7 +204,6 @@ func TestSetResource_APIGWv2_Route_ReadOne(t *testing.T) {
204
204
)
205
205
}
206
206
207
-
208
207
func TestSetResource_SageMaker_Domain_ReadOne (t * testing.T ) {
209
208
assert := assert .New (t )
210
209
require := require .New (t )
@@ -617,12 +616,12 @@ func TestSetResource_DynamoDB_Backup_ReadOne(t *testing.T) {
617
616
ko.Status.ACKResourceMetadata.ARN = &arn
618
617
}
619
618
if resp.BackupDescription.BackupDetails.BackupCreationDateTime != nil {
620
- ko.Status.BackupCreationDateTime = &metav1.Time{*resp.BackupDescription.BackupDetails.BackupCreationDateTime}
619
+ ko.Status.BackupCreationDateTime = &metav1.Time{Time: *resp.BackupDescription.BackupDetails.BackupCreationDateTime}
621
620
} else {
622
621
ko.Status.BackupCreationDateTime = nil
623
622
}
624
623
if resp.BackupDescription.BackupDetails.BackupExpiryDateTime != nil {
625
- ko.Status.BackupExpiryDateTime = &metav1.Time{*resp.BackupDescription.BackupDetails.BackupExpiryDateTime}
624
+ ko.Status.BackupExpiryDateTime = &metav1.Time{Time: *resp.BackupDescription.BackupDetails.BackupExpiryDateTime}
626
625
} else {
627
626
ko.Status.BackupExpiryDateTime = nil
628
627
}
@@ -709,7 +708,7 @@ func TestSetResource_DynamoDB_Table_ReadOne(t *testing.T) {
709
708
f0.ArchivalBackupARN = resp.Table.ArchivalSummary.ArchivalBackupArn
710
709
}
711
710
if resp.Table.ArchivalSummary.ArchivalDateTime != nil {
712
- f0.ArchivalDateTime = &metav1.Time{*resp.Table.ArchivalSummary.ArchivalDateTime}
711
+ f0.ArchivalDateTime = &metav1.Time{Time: *resp.Table.ArchivalSummary.ArchivalDateTime}
713
712
}
714
713
if resp.Table.ArchivalSummary.ArchivalReason != nil {
715
714
f0.ArchivalReason = resp.Table.ArchivalSummary.ArchivalReason
@@ -740,14 +739,14 @@ func TestSetResource_DynamoDB_Table_ReadOne(t *testing.T) {
740
739
f2.BillingMode = aws.String(string(resp.Table.BillingModeSummary.BillingMode))
741
740
}
742
741
if resp.Table.BillingModeSummary.LastUpdateToPayPerRequestDateTime != nil {
743
- f2.LastUpdateToPayPerRequestDateTime = &metav1.Time{*resp.Table.BillingModeSummary.LastUpdateToPayPerRequestDateTime}
742
+ f2.LastUpdateToPayPerRequestDateTime = &metav1.Time{Time: *resp.Table.BillingModeSummary.LastUpdateToPayPerRequestDateTime}
744
743
}
745
744
ko.Status.BillingModeSummary = f2
746
745
} else {
747
746
ko.Status.BillingModeSummary = nil
748
747
}
749
748
if resp.Table.CreationDateTime != nil {
750
- ko.Status.CreationDateTime = &metav1.Time{*resp.Table.CreationDateTime}
749
+ ko.Status.CreationDateTime = &metav1.Time{Time: *resp.Table.CreationDateTime}
751
750
} else {
752
751
ko.Status.CreationDateTime = nil
753
752
}
@@ -936,7 +935,7 @@ func TestSetResource_DynamoDB_Table_ReadOne(t *testing.T) {
936
935
if resp.Table.RestoreSummary != nil {
937
936
f13 := &svcapitypes.RestoreSummary{}
938
937
if resp.Table.RestoreSummary.RestoreDateTime != nil {
939
- f13.RestoreDateTime = &metav1.Time{*resp.Table.RestoreSummary.RestoreDateTime}
938
+ f13.RestoreDateTime = &metav1.Time{Time: *resp.Table.RestoreSummary.RestoreDateTime}
940
939
}
941
940
if resp.Table.RestoreSummary.RestoreInProgress != nil {
942
941
f13.RestoreInProgress = resp.Table.RestoreSummary.RestoreInProgress
@@ -954,7 +953,7 @@ func TestSetResource_DynamoDB_Table_ReadOne(t *testing.T) {
954
953
if resp.Table.SSEDescription != nil {
955
954
f14 := &svcapitypes.SSEDescription{}
956
955
if resp.Table.SSEDescription.InaccessibleEncryptionDateTime != nil {
957
- f14.InaccessibleEncryptionDateTime = &metav1.Time{*resp.Table.SSEDescription.InaccessibleEncryptionDateTime}
956
+ f14.InaccessibleEncryptionDateTime = &metav1.Time{Time: *resp.Table.SSEDescription.InaccessibleEncryptionDateTime}
958
957
}
959
958
if resp.Table.SSEDescription.KMSMasterKeyArn != nil {
960
959
f14.KMSMasterKeyARN = resp.Table.SSEDescription.KMSMasterKeyArn
@@ -1029,7 +1028,7 @@ func TestSetResource_EC2_LaunchTemplate_Create(t *testing.T) {
1029
1028
// "LaunchTemplate" that contains the CreatedBy field.
1030
1029
expected := `
1031
1030
if resp.LaunchTemplate.CreateTime != nil {
1032
- ko.Status.CreateTime = &metav1.Time{*resp.LaunchTemplate.CreateTime}
1031
+ ko.Status.CreateTime = &metav1.Time{Time: *resp.LaunchTemplate.CreateTime}
1033
1032
} else {
1034
1033
ko.Status.CreateTime = nil
1035
1034
}
@@ -1095,7 +1094,7 @@ func TestSetResource_ECR_Repository_Create(t *testing.T) {
1095
1094
// "Repository" that contains the RegistryId field.
1096
1095
expected := `
1097
1096
if resp.Repository.CreatedAt != nil {
1098
- ko.Status.CreatedAt = &metav1.Time{*resp.Repository.CreatedAt}
1097
+ ko.Status.CreatedAt = &metav1.Time{Time: *resp.Repository.CreatedAt}
1099
1098
} else {
1100
1099
ko.Status.CreatedAt = nil
1101
1100
}
@@ -1158,7 +1157,7 @@ func TestSetResource_ECR_Repository_ReadMany(t *testing.T) {
1158
1157
found := false
1159
1158
for _, elem := range resp.Repositories {
1160
1159
if elem.CreatedAt != nil {
1161
- ko.Status.CreatedAt = &metav1.Time{*elem.CreatedAt}
1160
+ ko.Status.CreatedAt = &metav1.Time{Time: *elem.CreatedAt}
1162
1161
} else {
1163
1162
ko.Status.CreatedAt = nil
1164
1163
}
@@ -1895,7 +1894,7 @@ func TestSetResource_IAM_Role_NestedSetConfig(t *testing.T) {
1895
1894
ko.Spec.AssumeRolePolicyDocument = nil
1896
1895
}
1897
1896
if resp.Role.CreateDate != nil {
1898
- ko.Status.CreateDate = &metav1.Time{*resp.Role.CreateDate}
1897
+ ko.Status.CreateDate = &metav1.Time{Time: *resp.Role.CreateDate}
1899
1898
} else {
1900
1899
ko.Status.CreateDate = nil
1901
1900
}
@@ -1928,7 +1927,7 @@ func TestSetResource_IAM_Role_NestedSetConfig(t *testing.T) {
1928
1927
if resp.Role.RoleLastUsed != nil {
1929
1928
f8 := &svcapitypes.RoleLastUsed{}
1930
1929
if resp.Role.RoleLastUsed.LastUsedDate != nil {
1931
- f8.LastUsedDate = &metav1.Time{*resp.Role.RoleLastUsed.LastUsedDate}
1930
+ f8.LastUsedDate = &metav1.Time{Time: *resp.Role.RoleLastUsed.LastUsedDate}
1932
1931
}
1933
1932
if resp.Role.RoleLastUsed.Region != nil {
1934
1933
f8.Region = resp.Role.RoleLastUsed.Region
@@ -2168,7 +2167,7 @@ func TestSetResource_EC2_Instance_Create(t *testing.T) {
2168
2167
f9elem.ElasticInferenceAcceleratorAssociationState = f9iter.ElasticInferenceAcceleratorAssociationState
2169
2168
}
2170
2169
if f9iter.ElasticInferenceAcceleratorAssociationTime != nil {
2171
- f9elem.ElasticInferenceAcceleratorAssociationTime = &metav1.Time{*f9iter.ElasticInferenceAcceleratorAssociationTime}
2170
+ f9elem.ElasticInferenceAcceleratorAssociationTime = &metav1.Time{Time: *f9iter.ElasticInferenceAcceleratorAssociationTime}
2172
2171
}
2173
2172
f9 = append(f9, f9elem)
2174
2173
}
@@ -2244,7 +2243,7 @@ func TestSetResource_EC2_Instance_Create(t *testing.T) {
2244
2243
ko.Spec.KeyName = nil
2245
2244
}
2246
2245
if elem.LaunchTime != nil {
2247
- ko.Status.LaunchTime = &metav1.Time{*elem.LaunchTime}
2246
+ ko.Status.LaunchTime = &metav1.Time{Time: *elem.LaunchTime}
2248
2247
} else {
2249
2248
ko.Status.LaunchTime = nil
2250
2249
}
@@ -2538,7 +2537,7 @@ func TestSetResource_EC2_Instance_Create(t *testing.T) {
2538
2537
ko.Status.UsageOperation = nil
2539
2538
}
2540
2539
if elem.UsageOperationUpdateTime != nil {
2541
- ko.Status.UsageOperationUpdateTime = &metav1.Time{*elem.UsageOperationUpdateTime}
2540
+ ko.Status.UsageOperationUpdateTime = &metav1.Time{Time: *elem.UsageOperationUpdateTime}
2542
2541
} else {
2543
2542
ko.Status.UsageOperationUpdateTime = nil
2544
2543
}
@@ -2697,7 +2696,7 @@ func TestSetResource_EC2_Instance_ReadMany(t *testing.T) {
2697
2696
f9elem.ElasticInferenceAcceleratorAssociationState = f9iter.ElasticInferenceAcceleratorAssociationState
2698
2697
}
2699
2698
if f9iter.ElasticInferenceAcceleratorAssociationTime != nil {
2700
- f9elem.ElasticInferenceAcceleratorAssociationTime = &metav1.Time{*f9iter.ElasticInferenceAcceleratorAssociationTime}
2699
+ f9elem.ElasticInferenceAcceleratorAssociationTime = &metav1.Time{Time: *f9iter.ElasticInferenceAcceleratorAssociationTime}
2701
2700
}
2702
2701
f9 = append(f9, f9elem)
2703
2702
}
@@ -2773,7 +2772,7 @@ func TestSetResource_EC2_Instance_ReadMany(t *testing.T) {
2773
2772
ko.Spec.KeyName = nil
2774
2773
}
2775
2774
if elem.LaunchTime != nil {
2776
- ko.Status.LaunchTime = &metav1.Time{*elem.LaunchTime}
2775
+ ko.Status.LaunchTime = &metav1.Time{Time: *elem.LaunchTime}
2777
2776
} else {
2778
2777
ko.Status.LaunchTime = nil
2779
2778
}
@@ -3067,7 +3066,7 @@ func TestSetResource_EC2_Instance_ReadMany(t *testing.T) {
3067
3066
ko.Status.UsageOperation = nil
3068
3067
}
3069
3068
if elem.UsageOperationUpdateTime != nil {
3070
- ko.Status.UsageOperationUpdateTime = &metav1.Time{*elem.UsageOperationUpdateTime}
3069
+ ko.Status.UsageOperationUpdateTime = &metav1.Time{Time: *elem.UsageOperationUpdateTime}
3071
3070
} else {
3072
3071
ko.Status.UsageOperationUpdateTime = nil
3073
3072
}
0 commit comments