Skip to content

Commit

Permalink
fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
hkantare authored and kavya498 committed Nov 20, 2023
1 parent 1142c27 commit 2e8ac03
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ package codeengine_test
import (
"encoding/base64"
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

Expand Down Expand Up @@ -40,7 +41,7 @@ func TestAccIbmCodeEngineDomainMappingBasic(t *testing.T) {
Providers: acc.TestAccProviders,
CheckDestroy: testAccCheckIbmCodeEngineDomainMappingDestroy,
Steps: []resource.TestStep{
resource.TestStep{
{
Config: testAccCheckIbmCodeEngineDomainMappingConfigBasic(projectID, app1Name, app2Name, domainMappingTLSKey, domainMappingTLSCert, secretName, app1Name, domainMappingName, "app1_instance"),
Check: resource.ComposeAggregateTestCheckFunc(
testAccCheckIbmCodeEngineDomainMappingExists("ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", conf),
Expand All @@ -58,7 +59,7 @@ func TestAccIbmCodeEngineDomainMappingBasic(t *testing.T) {
resource.TestCheckResourceAttr("ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "tls_secret", secretName),
),
},
resource.TestStep{
{
Config: testAccCheckIbmCodeEngineDomainMappingConfigBasic(projectID, app1Name, app2Name, domainMappingTLSKey, domainMappingTLSCert, secretName, app2Name, domainMappingName, "app2_instance"),
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttrSet("ibm_code_engine_domain_mapping.code_engine_domain_mapping_instance", "id"),
Expand Down Expand Up @@ -213,7 +214,7 @@ func testAccCheckIbmCodeEngineDomainMappingDestroy(s *terraform.State) error {
func decodeBase64EnvVar(base64Text string, envVar string) string {
decodedText, err := base64.StdEncoding.DecodeString(base64Text)
if err != nil {
fmt.Errorf("Error decoding environment variable %s: %s", envVar, err)
fmt.Printf("Error decoding environment variable %s: %s", envVar, err)
return ""
}
return string(decodedText)
Expand Down

0 comments on commit 2e8ac03

Please sign in to comment.