feat(iaas): min/max acc tests (#811)
* feat(iaas): security group min/max acc test * feat(iaas): image min/max acc test * feat(iaas): KeyPair min/max acc test * feat(iaas): Network area min/max acc test - fix: wrong atLeast-validator for `minimum_prefix_length` * feat(iaas): Network min/max acc test * feat(iaas): Volume min/max acc test - fix: volume update doesn't work if no name was defined - fix: volume.server_id can not be set - fix: error message volume.size returns value but was null * feat(iaas): Network interfaces min/max acc test * feat(iaas): Affinity groups acc test * feat(iaas): Server min/max acc test - stackit_server_volume_attach - stackit_server_network_interface_attach - stackit_server_service_account_attach * fix(iaas): acc test - image: fix read of Config.VirtioScsi - keypair: add missing RequiresReplace() for name - server: add missing UserData read in datasource and resource * feat(iaas): public ip acc test - fix: when a nic is assigned to a public ip, the field network_interface_id leads to recreation
This commit is contained in:
parent
b5f955124a
commit
c7c64a5806
28 changed files with 3494 additions and 995 deletions
|
|
@ -323,6 +323,10 @@ func mapDataSourceFields(ctx context.Context, serverResp *iaas.Server, model *Da
|
|||
model.BootVolume = types.ObjectNull(bootVolumeDataTypes)
|
||||
}
|
||||
|
||||
if serverResp.UserData != nil && len(*serverResp.UserData) > 0 {
|
||||
model.UserData = types.StringValue(string(*serverResp.UserData))
|
||||
}
|
||||
|
||||
model.AvailabilityZone = types.StringPointerValue(serverResp.AvailabilityZone)
|
||||
model.ServerId = types.StringValue(serverId)
|
||||
model.MachineType = types.StringPointerValue(serverResp.MachineType)
|
||||
|
|
|
|||
|
|
@ -960,6 +960,10 @@ func mapFields(ctx context.Context, serverResp *iaas.Server, model *Model) error
|
|||
if serverResp.Status != nil && *serverResp.Status != wait.ServerDeallocatedStatus {
|
||||
model.AvailabilityZone = types.StringPointerValue(serverResp.AvailabilityZone)
|
||||
}
|
||||
|
||||
if serverResp.UserData != nil && len(*serverResp.UserData) > 0 {
|
||||
model.UserData = types.StringValue(string(*serverResp.UserData))
|
||||
}
|
||||
model.Name = types.StringPointerValue(serverResp.Name)
|
||||
model.Labels = labels
|
||||
model.ImageId = types.StringPointerValue(serverResp.ImageId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue