newcontext-oss/kitchen-terraform

[question] Control the workspace name for new suites

lmayorga1980 opened this issue · 1 comments

Would it be possible for kitchen-terraform to use the current workspace to run the tests without switching to the calculated one?

kitchen verify                                ✔  4779  14:48:16
-----> Starting Test Kitchen (v2.5.0)
-----> Creating <my-ubuntu>...
$$$$$$ Verifying the Terraform client version is in the supported interval of >= 0.11.4, < 0.13.0...
$$$$$$ Reading the Terraform client version...
       Terraform v0.12.24
       + provider.local v1.4.0
       + provider.openstack v1.28.0

       Your version of Terraform is out of date! The latest version
       is 0.12.25. You can update by downloading from https://www.terraform.io/downloads.html
$$$$$$ Finished reading the Terraform client version.
$$$$$$ Finished verifying the Terraform client version.
$$$$$$ Initializing the Terraform working directory...

       Initializing the backend...

       Initializing provider plugins...
       - Checking for available provider plugins...
       - Downloading plugin for provider "openstack" (terraform-providers/openstack) 1.28.0...

       The following providers do not have any version constraints in configuration,
       so the latest version was installed.

       To prevent automatic upgrades to new major versions that may contain breaking
       changes, it is recommended to add version = "..." constraints to the
       corresponding provider blocks in configuration, with the constraint strings
       suggested below.

       * provider.openstack: version = "~> 1.28"

       Terraform has been successfully initialized!
$$$$$$ Finished initializing the Terraform working directory.
$$$$$$ Creating the kitchen-terraform-my-ubuntu Terraform workspace...
       Workspace "kitchen-terraform-my-ubuntu" already exists
$$$$$$ Selecting the kitchen-terraform-my-ubuntu Terraform workspace...
       Switched to workspace "kitchen-terraform-my-ubuntu".
$$$$$$ Finished selecting the kitchen-terraform-my-ubuntu Terraform workspace.
       Finished creating <my-ubuntu> (0m5.02s).
-----> Converging <my-ubuntu>...
$$$$$$ Verifying the Terraform client version is in the supported interval of >= 0.11.4, < 0.13.0...
$$$$$$ Reading the Terraform client version...
       Terraform v0.12.24
       + provider.openstack v1.28.0

       Your version of Terraform is out of date! The latest version
       is 0.12.25. You can update by downloading from https://www.terraform.io/downloads.html
$$$$$$ Finished reading the Terraform client version.
$$$$$$ Finished verifying the Terraform client version.
$$$$$$ Selecting the kitchen-terraform-my-ubuntu Terraform workspace...
$$$$$$ Finished selecting the kitchen-terraform-my-ubuntu Terraform workspace.
$$$$$$ Downloading the modules needed for the Terraform configuration...
$$$$$$ Finished downloading the modules needed for the Terraform configuration.
$$$$$$ Validating the Terraform configuration files...

Hi @lmayorga1980! I apologize for the delayed response.

I think it's a reasonable idea, which is related to #348.