Skip to content

Commit 9d7e0aa

Browse files
yuhhe-97jotruon
authored andcommitted
Change the image state from AVAILABLE to ACTIVE. Skip TestFunctionsInvokeFunctionResource_basic test until functions support async life cycle state transitions.
1 parent 2c8f1fe commit 9d7e0aa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

oci/functions_function_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var (
3434
"application_id": Representation{repType: Required, create: `${oci_functions_application.test_application.id}`},
3535
"display_name": Representation{repType: Optional, create: `ExampleFunction`},
3636
"id": Representation{repType: Optional, create: `${oci_functions_function.test_function.id}`},
37-
"state": Representation{repType: Optional, create: `AVAILABLE`},
37+
"state": Representation{repType: Optional, create: `ACTIVE`},
3838
"filter": RepresentationGroup{Required, functionDataSourceFilterRepresentation}}
3939
functionDataSourceFilterRepresentation = map[string]interface{}{
4040
"name": Representation{repType: Required, create: `id`},
@@ -186,7 +186,7 @@ func TestFunctionsFunctionResource_basic(t *testing.T) {
186186
resource.TestCheckResourceAttrSet(datasourceName, "application_id"),
187187
resource.TestCheckResourceAttr(datasourceName, "display_name", "ExampleFunction"),
188188
//resource.TestCheckResourceAttr(datasourceName, "id", "id"),
189-
resource.TestCheckResourceAttr(datasourceName, "state", "AVAILABLE"),
189+
resource.TestCheckResourceAttr(datasourceName, "state", "ACTIVE"),
190190

191191
resource.TestCheckResourceAttr(datasourceName, "functions.#", "1"),
192192
resource.TestCheckResourceAttrSet(datasourceName, "functions.0.application_id"),

oci/functions_invoke_function_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ func createTmpSourceFile() (string, error) {
9999

100100
// issue-routing-tag: functions/default
101101
func TestFunctionsInvokeFunctionResource_basic(t *testing.T) {
102+
t.Skip("Skipping test until functions support async life cycle state transitions.")
103+
102104
if httpreplay.ModeRecordReplay() {
103105
t.Skip("Skipping TestFunctionsInvokeFunctionResource_basic in HttpReplay mode till json encoding is fixed.")
104106
}

0 commit comments

Comments
 (0)