Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
fixes #134
Browse files Browse the repository at this point in the history
  • Loading branch information
iwarapter committed Jul 3, 2022
1 parent b23cf57 commit 3d7dc38
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 19 deletions.
1 change: 0 additions & 1 deletion docs/resources/application_resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Provides configuration for Application Resources within PingAccess.
resource "pingaccess_application_resource" "app_res_test_root_resource" {
name = "Root Resource"
methods = ["*"]
path_prefixes = ["/*"]
audit_level = "ON"
anonymous = false
enabled = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
resource "pingaccess_application_resource" "app_res_test_root_resource" {
name = "Root Resource"
methods = ["*"]
path_prefixes = ["/*"]
audit_level = "ON"
anonymous = false
enabled = true
Expand Down
5 changes: 0 additions & 5 deletions func-tests/application_resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ resource "pingaccess_application_resource" "demo_application_resource" {
type = "WILDCARD"
}

path_prefixes = [
"/as/token.oauth2",
"/foo",
]

audit_level = "OFF"
anonymous = false
enabled = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func resourcePingAccessApplicationResourceSchema() map[string]*schema.Schema {
"path_prefixes": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Deprecated: "To be removed in a future release; please use 'path_patterns' instead",
Elem: &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ resource "pingaccess_application_resource" "app_res_test_resource" {
type = "WILDCARD"
}
path_prefixes = [
"/as/token.oauth2",
"%s"
]
audit_level = "OFF"
anonymous = false
enabled = true
Expand All @@ -157,9 +153,6 @@ resource "pingaccess_application_resource" "app_res_virtual_resource" {
type = "WILDCARD"
}
path_prefixes = [
"/virtual"
]
audit_level = "OFF"
anonymous = false
enabled = true
Expand Down Expand Up @@ -190,10 +183,6 @@ resource "pingaccess_application_resource" "app_res_test_root_resource" {
"*"
]
path_prefixes = [
"/*"
]
path_patterns {
pattern = "/*"
type = "WILDCARD"
Expand Down Expand Up @@ -259,7 +248,7 @@ resource "pingaccess_rule" "acc_test_resource_rule_two" {
}
EOF
}
`, name, context, context, policy)
`, name, context, policy)
}

func testAccCheckPingAccessApplicationResourceExists(n string) resource.TestCheckFunc {
Expand Down

0 comments on commit 3d7dc38

Please sign in to comment.