File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ ```release-note:enhancement
2+ helper/resource: Added Terraform configuration to `TRACE` logging
3+ ```
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ const (
3131	// The TestStep number of the test being executed. Starts at 1. 
3232	KeyTestStepNumber  =  "test_step_number" 
3333
34+ 	// Terraform configuration used during acceptance testing Terraform operations. 
35+ 	KeyTestTerraformConfiguration  =  "test_terraform_configuration" 
36+ 
3437	// The Terraform CLI logging level (TF_LOG) used for an acceptance test. 
3538	KeyTestTerraformLogLevel  =  "test_terraform_log_level" 
3639
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ func (wd *WorkingDir) GetHelper() *Helper {
7676// Destroy to establish the configuration. Any previously-set configuration is 
7777// discarded and any saved plan is cleared. 
7878func  (wd  * WorkingDir ) SetConfig (ctx  context.Context , cfg  string ) error  {
79+ 	logging .HelperResourceTrace (ctx , "Setting Terraform configuration" , map [string ]any {logging .KeyTestTerraformConfiguration : cfg })
80+ 
7981	outFilename  :=  filepath .Join (wd .baseDir , ConfigFileName )
8082	rmFilename  :=  filepath .Join (wd .baseDir , ConfigFileNameJSON )
8183	bCfg  :=  []byte (cfg )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments