Skip to content

Commit

Permalink
update vpc cluster unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
hiltol committed Apr 3, 2024
1 parent 1a566dc commit 452095c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
├─ VPC Container Work Zone flavor: (bx2.4x16) region: (us-south) name: (us-south-1) x(3) workers 3 hours $0.83
└─ VPC Container Work Zone flavor: (bx2.4x16) region: (us-south) name: (us-south-2) x(3) workers 3 hours $0.83

mycluster-without-usage
myrokscluster-with-usage
├─ VPC Container Work Zone flavor: (bx2.4x16) region: (us-south) name: (us-south-1) x(3) workers 2,190 hours $983.08
└─ VPC Container Work Zone flavor: (bx2.4x16) region: (us-south) name: (us-south-2) x(3) workers 2,190 hours $983.08

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resource "ibm_container_vpc_cluster" "cluster_without_usage" {
}

resource "ibm_container_vpc_cluster" "roks_cluster_with_usage" {
name = "mycluster-without-usage"
name = "myrokscluster-with-usage"
vpc_id = ibm_is_vpc.vpc1.id
flavor = "bx2.4x16"
worker_count = 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ resource_usage:
ibm_container_vpc_cluster.cluster:
monthly_instance_hours: 730
ibm_is_vpc.vpc1:
gigabyte_transmitted_outbounds: 50100
gigabyte_transmitted_outbounds: 50100
ibm_container_vpc_cluster.roks_cluster_with_usage:
monthly_instance_hours: 730
7 changes: 7 additions & 0 deletions internal/providers/terraform/tftest/tftest.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ var tfProviders = `
azurerm = {
source = "hashicorp/azurerm"
}
ibm = {
source = "IBM-Cloud/ibm"
}
}
}
Expand Down Expand Up @@ -70,6 +73,10 @@ var tfProviders = `
skip_provider_registration = true
features {}
}
provider "ibm" {
region = "us-south"
}
`

var (
Expand Down

0 comments on commit 452095c

Please sign in to comment.