@@ -174,6 +174,38 @@ func TestResourceSecretACLCreate(t *testing.T) {
174174 assert .Equal (t , "global|||something" , d .Id ())
175175}
176176
177+ func TestResourceSecretACLCreate_ScopeWithSlash (t * testing.T ) {
178+ d , err := qa.ResourceFixture {
179+ Fixtures : []qa.HTTPFixture {
180+ {
181+ Method : "POST" ,
182+ Resource : "/api/2.0/secrets/acls/put" ,
183+ ExpectedRequest : SecretACLRequest {
184+ Principal : "something" ,
185+ Permission : "CAN_MANAGE" ,
186+ Scope : "myapplication/branch" ,
187+ },
188+ },
189+ {
190+ Method : "GET" ,
191+ Resource : "/api/2.0/secrets/acls/get?principal=something&scope=myapplication%2Fbranch" ,
192+ Response : ACLItem {
193+ Permission : "CAN_MANAGE" ,
194+ },
195+ },
196+ },
197+ Resource : ResourceSecretACL (),
198+ State : map [string ]interface {}{
199+ "permission" : "CAN_MANAGE" ,
200+ "principal" : "something" ,
201+ "scope" : "myapplication/branch" ,
202+ },
203+ Create : true ,
204+ }.Apply (t )
205+ assert .NoError (t , err , err )
206+ assert .Equal (t , "myapplication/branch|||something" , d .Id ())
207+ }
208+
177209func TestResourceSecretACLCreate_Error (t * testing.T ) {
178210 d , err := qa.ResourceFixture {
179211 Fixtures : []qa.HTTPFixture {
0 commit comments