chore: refactor tests
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 14s
CI Workflow / CI (pull_request) Failing after 12m47s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 30m54s

This commit is contained in:
Marcel S. Henselin 2026-02-10 16:50:55 +01:00
parent d6627617af
commit ca2a261514
15 changed files with 1088 additions and 294 deletions

View file

@ -1,8 +1,8 @@
variable "project_id" {}
variable "name" {}
variable "region" {}
provider "stackit" {
provider "stackitprivatepreview" {
default_region = "eu01"
credentials_path = "~/.stackit/credentials.json"
service_account_token = ""
@ -36,7 +36,11 @@ provider "stackit" {
enable_beta_resources = "true"
}
resource "stackit_network" "network" {
name = var.name
project_id = var.project_id
data "stackitprivatepreview_postgresflexalpha_flavor" "flavor" {
project_id = var.project_id
region = var.region
cpu = 2
ram = 4
node_type = "Single"
storage_class = "premium-perf2-stackit"
}

View file

@ -1,11 +1,18 @@
variable "project_id" {}
variable "name" {}
variable "region" {}
provider "stackit" {
variable "service_account_key_path" {}
provider "stackitprivatepreview" {
service_account_key_path = var.service_account_key_path
}
resource "stackit_network" "network" {
name = var.name
project_id = var.project_id
}
data "stackitprivatepreview_postgresflexalpha_flavor" "flavor" {
project_id = var.project_id
region = var.region
cpu = 2
ram = 4
node_type = "Single"
storage_class = "premium-perf2-stackit"
}

View file

@ -1,12 +1,16 @@
variable "project_id" {}
variable "name" {}
variable "region" {}
provider "stackit" {
provider "stackitprivatepreview" {
test = "test"
}
resource "stackit_network" "network" {
name = var.name
project_id = var.project_id
}
data "stackitprivatepreview_postgresflexalpha_flavor" "flavor" {
project_id = var.project_id
region = var.region
cpu = 2
ram = 4
node_type = "Single"
storage_class = "premium-perf2-stackit"
}