Skip to content

Commit

Permalink
fix failing posture test (#10086) (#17507)
Browse files Browse the repository at this point in the history
* fix failing posture test

* modify posture name

---------



[upstream:a68867619922a8f947e59c9246281f4c6c741f34]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 7, 2024
1 parent bc97e1e commit fe854a4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changelog/10086.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestAccSecurityposturePostureDeployment_securityposturePostureDeploymentBas

func testAccSecurityposturePostureDeployment_securityposturePostureDeploymentBasicExample(context map[string]interface{}) string {
return acctest.Nprintf(`
resource "google_securityposture_posture" "posture1" {
resource "google_securityposture_posture" "posture_1" {
posture_id = "posture_1"
parent = "organizations/%{org_id}"
location = "global"
Expand Down Expand Up @@ -89,8 +89,8 @@ resource "google_securityposture_posture_deployment" "postureDeployment" {
location = "global"
description = "a new posture deployment"
target_resource = "projects/%{project_number}"
posture_id = google_securityposture_posture.posture1.name
posture_revision_id = google_securityposture_posture.posture1.revision_id
posture_id = google_securityposture_posture.posture_1.name
posture_revision_id = google_securityposture_posture.posture_1.revision_id
}
`, context)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestAccSecurityposturePosture_securityposturePostureBasicExample(t *testing
func testAccSecurityposturePosture_securityposturePostureBasicExample(context map[string]interface{}) string {
return acctest.Nprintf(`
resource "google_securityposture_posture" "posture1"{
posture_id = "posture_1"
posture_id = "posture_example"
parent = "organizations/%{org_id}"
location = "global"
state = "ACTIVE"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/securityposture_posture.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ To get more information about Posture, see:

```hcl
resource "google_securityposture_posture" "posture1"{
posture_id = "posture_1"
posture_id = "posture_example"
parent = "organizations/123456789"
location = "global"
state = "ACTIVE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ To get more information about PostureDeployment, see:


```hcl
resource "google_securityposture_posture" "posture1" {
resource "google_securityposture_posture" "posture_1" {
posture_id = "posture_1"
parent = "organizations/123456789"
location = "global"
Expand Down Expand Up @@ -64,8 +64,8 @@ resource "google_securityposture_posture_deployment" "postureDeployment" {
location = "global"
description = "a new posture deployment"
target_resource = "projects/1111111111111"
posture_id = google_securityposture_posture.posture1.name
posture_revision_id = google_securityposture_posture.posture1.revision_id
posture_id = google_securityposture_posture.posture_1.name
posture_revision_id = google_securityposture_posture.posture_1.revision_id
}
```

Expand Down

0 comments on commit fe854a4

Please sign in to comment.