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
48
stackit/internal/services/iaas/testdata/resource-image-max.tf
vendored
Normal file
48
stackit/internal/services/iaas/testdata/resource-image-max.tf
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
variable "project_id" {}
|
||||
variable "name" {}
|
||||
variable "disk_format" {}
|
||||
variable "local_file_path" {}
|
||||
variable "min_disk_size" {}
|
||||
variable "min_ram" {}
|
||||
variable "label" {}
|
||||
variable "boot_menu" {}
|
||||
variable "cdrom_bus" {}
|
||||
variable "disk_bus" {}
|
||||
variable "nic_model" {}
|
||||
variable "operating_system" {}
|
||||
variable "operating_system_distro" {}
|
||||
variable "operating_system_version" {}
|
||||
variable "rescue_bus" {}
|
||||
variable "rescue_device" {}
|
||||
variable "secure_boot" {}
|
||||
variable "uefi" {}
|
||||
variable "video_model" {}
|
||||
variable "virtio_scsi" {}
|
||||
|
||||
resource "stackit_image" "image" {
|
||||
project_id = var.project_id
|
||||
name = var.name
|
||||
disk_format = var.disk_format
|
||||
local_file_path = var.local_file_path
|
||||
min_disk_size = var.min_disk_size
|
||||
min_ram = var.min_ram
|
||||
labels = {
|
||||
"acc-test" : var.label
|
||||
}
|
||||
config = {
|
||||
boot_menu = var.boot_menu
|
||||
cdrom_bus = var.cdrom_bus
|
||||
disk_bus = var.disk_bus
|
||||
nic_model = var.nic_model
|
||||
operating_system = var.operating_system
|
||||
operating_system_distro = var.operating_system_distro
|
||||
operating_system_version = var.operating_system_version
|
||||
rescue_bus = var.rescue_bus
|
||||
rescue_device = var.rescue_device
|
||||
secure_boot = var.secure_boot
|
||||
uefi = var.uefi
|
||||
video_model = var.video_model
|
||||
virtio_scsi = var.virtio_scsi
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue