Skip to content

Commit

Permalink
Added reponse assets stuff back
Browse files Browse the repository at this point in the history
  • Loading branch information
dginty4 committed Jul 17, 2024
1 parent e8d2ab1 commit d5952d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"terraform-provider-genesyscloud/genesyscloud/provider"
resourceExporter "terraform-provider-genesyscloud/genesyscloud/resource_exporter"
registrar "terraform-provider-genesyscloud/genesyscloud/resource_register"
"terraform-provider-genesyscloud/genesyscloud/validators"
)

/*
Expand Down Expand Up @@ -39,11 +40,11 @@ func ResourceResponseManagementResponseAsset() *schema.Resource {
SchemaVersion: 1,
Schema: map[string]*schema.Schema{
`filename`: {
Description: "Name of the file to upload. Changing the name attribute will cause the existing response asset to be dropped and recreated with a new ID. It must not start with a dot and not end with a forward slash. Whitespace and the following characters are not allowed: \\{^}%`]\">[~<#|",
Required: true,
ForceNew: true,
Type: schema.TypeString,
//ValidateDiagFunc: validators.ValidateResponseAssetName,
Description: "Name of the file to upload. Changing the name attribute will cause the existing response asset to be dropped and recreated with a new ID. It must not start with a dot and not end with a forward slash. Whitespace and the following characters are not allowed: \\{^}%`]\">[~<#|",
Required: true,
ForceNew: true,
Type: schema.TypeString,
ValidateDiagFunc: validators.ValidateResponseAssetName,
},
`division_id`: {
Description: `Division to associate to this asset. Can only be used with this division.`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestAccResourceResponseManagementResponseAsset(t *testing.T) {
var (
resourceId = "responseasset"
testFilesDir = "test_responseasset_data"
fileName1 = "yeti -img.png"
fileName1 = "yeti-img.png"
fileName2 = "genesys-img.png"
fullPath1 = filepath.Join(testFilesDir, fileName1)
fullPath2 = filepath.Join(testFilesDir, fileName2)
Expand Down

0 comments on commit d5952d4

Please sign in to comment.