@@ -29,12 +29,12 @@ func initTestCases() []BucketTestCase {
2929 region : "" ,
3030 tfDir : "test_examples/minimal" ,
3131 bucket_name : "" ,
32- testName : "TestBucketSinglePath " ,
32+ testName : "TestBucketSingleReadPath " ,
3333 expectApplyError : false ,
3434 vars : map [string ]interface {}{
3535 "test_bucket_name" : "" ,
3636 "read_only_paths" : []string {"path/to/ro-folder" },
37- "read_write_paths" : []string {"path/to/rw-folder" },
37+ "read_write_paths" : []string {},
3838 },
3939 objTestCases : []ObjectTestCase {
4040 {
@@ -43,12 +43,6 @@ func initTestCases() []BucketTestCase {
4343 expectPassRead : true ,
4444 expectPassWrite : false ,
4545 },
46- {
47- key : "path/to/rw-folder/obj2" ,
48- encryption : "AES256" ,
49- expectPassRead : true ,
50- expectPassWrite : true ,
51- },
5246 {
5347 key : "other/folder/obj3" ,
5448 encryption : "AES256" ,
@@ -57,6 +51,38 @@ func initTestCases() []BucketTestCase {
5751 },
5852 },
5953 },
54+ {
55+ region : "" ,
56+ tfDir : "test_examples/minimal" ,
57+ bucket_name : "" ,
58+ testName : "TestBucketSingleWritePath" ,
59+ expectApplyError : false ,
60+ vars : map [string ]interface {}{
61+ "test_bucket_name" : "" ,
62+ "read_only_paths" : []string {},
63+ "read_write_paths" : []string {"path/to/rw-folder" },
64+ },
65+ objTestCases : []ObjectTestCase {
66+ {
67+ key : "path/to/ro-folder/obj1" ,
68+ encryption : "AES256" ,
69+ expectPassRead : true ,
70+ expectPassWrite : false ,
71+ },
72+ {
73+ key : "path/to/rw-folder/obj2" ,
74+ encryption : "AES256" ,
75+ expectPassRead : true ,
76+ expectPassWrite : true ,
77+ },
78+ {
79+ key : "other/folder/obj3" ,
80+ encryption : "AES256" ,
81+ expectPassRead : true ,
82+ expectPassWrite : false ,
83+ },
84+ },
85+ },
6086 {
6187 region : "" ,
6288 tfDir : "test_examples/minimal" ,
0 commit comments