Skip to content

Commit 3e127fb

Browse files
Add user ocid
1 parent c18793f commit 3e127fb

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

sysdig/data_source_sysdig_secure_onboarding.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ func dataSourceSysdigSecureTrustedOracleApp() *schema.Resource {
424424
Type: schema.TypeString,
425425
Computed: true,
426426
},
427+
"user_ocid": {
428+
Type: schema.TypeString,
429+
Computed: true,
430+
},
427431
},
428432
}
429433
}

sysdig/data_source_sysdig_secure_onboarding_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ func TestAccTrustedOracleAppDataSource(t *testing.T) {
215215
resource.TestCheckResourceAttr("data.sysdig_secure_trusted_oracle_app.config_posture", "name", "config_posture"),
216216
// resource.TestCheckResourceAttrSet("data.sysdig_secure_trusted_oracle_app.config_posture", "tenancy_ocid"), // uncomment to assert a non empty value
217217
// resource.TestCheckResourceAttrSet("data.sysdig_secure_trusted_oracle_app.config_posture", "group_ocid"), // uncomment to assert a non empty value
218+
// resource.TestCheckResourceAttrSet("data.sysdig_secure_trusted_oracle_app.config_posture", "user_ocid"), // uncomment to assert a non empty value
218219
),
219220
},
220221
{
@@ -223,6 +224,7 @@ func TestAccTrustedOracleAppDataSource(t *testing.T) {
223224
resource.TestCheckResourceAttr("data.sysdig_secure_trusted_oracle_app.onboarding", "name", "onboarding"),
224225
// resource.TestCheckResourceAttrSet("data.sysdig_secure_trusted_oracle_app.onboarding", "tenancy_ocid"), // uncomment to assert a non empty value
225226
// resource.TestCheckResourceAttrSet("data.sysdig_secure_trusted_oracle_app.onboarding", "group_ocid"), // uncomment to assert a non empty value
227+
// resource.TestCheckResourceAttrSet("data.sysdig_secure_trusted_oracle_app.onboarding", "user_ocid"), // uncomment to assert a non empty value
226228
),
227229
},
228230
},

website/docs/d/secure_trusted_oracle_app.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ In addition to all arguments above, the following attributes are exported:
3333

3434
* `group_ocid` - The application's associated usergroup OCI identifier.
3535

36+
* `user_ocid` - The application's associated user OCI identifier.
37+

0 commit comments

Comments
 (0)