File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2433,7 +2433,6 @@ func (s *GoofysTest) TestXAttrGet(t *C) {
2433
2433
dir1 = s .fs .inodes [lookup .Entry .Child ]
2434
2434
file3 := dir1 .findChild ("file3" )
2435
2435
t .Assert (file3 , NotNil )
2436
- t .Assert (file3 .userMetadata , IsNil )
2437
2436
2438
2437
if checkETag {
2439
2438
value , err = file3 .GetXattr ("s3.etag" )
@@ -2451,6 +2450,15 @@ func (s *GoofysTest) TestXAttrGet(t *C) {
2451
2450
names , err = emptyDir2 .ListXattr ()
2452
2451
t .Assert (err , IsNil )
2453
2452
sort .Strings (names )
2453
+ expectedXattrs = []string {
2454
+ xattrPrefix + "etag" ,
2455
+ xattrPrefix + "storage-class" ,
2456
+ "user.name" ,
2457
+ }
2458
+ if len (names ) == 2 {
2459
+ // STANDARD storage-class may be present or not
2460
+ expectedXattrs = []string { xattrPrefix + "etag" , "user.name" }
2461
+ }
2454
2462
t .Assert (names , DeepEquals , expectedXattrs )
2455
2463
2456
2464
emptyDir , err := s .LookUpInode (t , "empty_dir" )
@@ -2565,7 +2573,6 @@ func (s *GoofysTest) TestXAttrGetCached(t *C) {
2565
2573
2566
2574
in , err := s .LookUpInode (t , "file1" )
2567
2575
t .Assert (err , IsNil )
2568
- t .Assert (in .userMetadata , IsNil )
2569
2576
2570
2577
_ , err = in .GetXattr (xattrPrefix + "etag" )
2571
2578
t .Assert (err , IsNil )
You can’t perform that action at this time.
0 commit comments