@@ -129,7 +129,7 @@ func TestAccCodefreshContextSecretYaml(t *testing.T) {
129129 CheckDestroy : testAccCheckCodefreshContextDestroy ,
130130 Steps : []resource.TestStep {
131131 {
132- Config : testAccCodefreshContextSecretYaml (name , "rootKey" , "plainKey" , "plainValue" , "listKey" , "listValue1" , "listValue2" , true ),
132+ Config : testAccCodefreshContextSecretYaml (name , "rootKey" , "plainKey" , "plainValue" , "listKey" , "listValue1" , "listValue2" ),
133133 Check : resource .ComposeTestCheckFunc (
134134 testAccCheckCodefreshContextExists (resourceName ),
135135 resource .TestCheckResourceAttr (resourceName , "name" , name ),
@@ -159,7 +159,7 @@ func testAccCheckCodefreshContextExists(resource string) resource.TestCheckFunc
159159 contextID := rs .Primary .ID
160160
161161 apiClient := testAccProvider .Meta ().(* cfclient.Client )
162- _ , err := apiClient .GetContext (contextID , false )
162+ _ , err := apiClient .GetContext (contextID )
163163
164164 if err != nil {
165165 return fmt .Errorf ("error fetching context with ID %s. %s" , contextID , err )
@@ -177,7 +177,7 @@ func testAccCheckCodefreshContextDestroy(s *terraform.State) error {
177177 continue
178178 }
179179
180- _ , err := apiClient .GetContext (rs .Primary .ID , false )
180+ _ , err := apiClient .GetContext (rs .Primary .ID )
181181
182182 if err == nil {
183183 return fmt .Errorf ("Alert still exists" )
@@ -249,20 +249,18 @@ resource "codefresh_context" "test" {
249249` , rName , rootKey , plainKey , plainValue , listKey , listValue1 , listValue2 )
250250}
251251
252- func testAccCodefreshContextSecretYaml (rName , rootKey , plainKey , plainValue , listKey , listValue1 , listValue2 string , decryptSpec bool ) string {
252+ func testAccCodefreshContextSecretYaml (rName , rootKey , plainKey , plainValue , listKey , listValue1 , listValue2 string ) string {
253253
254254 return fmt .Sprintf (`
255255resource "codefresh_context" "test" {
256256
257257 name = "%s"
258258
259- decrypt_spec = %v
260-
261259 spec {
262260 secretyaml {
263261 data = "%s: \n %s: %s\n %s: \n - %s\n - %s"
264262 }
265263 }
266264}
267- ` , rName , decryptSpec , rootKey , plainKey , plainValue , listKey , listValue1 , listValue2 )
265+ ` , rName , rootKey , plainKey , plainValue , listKey , listValue1 , listValue2 )
268266}
0 commit comments