anchor.diff:          end
       end,
       VerifyEnvFun = fun
  -        (expected_failure, #api_test_ctx{node = TestNode, data = #{<<"metadata">> := Xattrs}}) ->
  -            assert_no_xattrs_set(TestNode, FileGuid, Xattrs, Config),
  +        (expected_failure, #api_test_ctx{node = TestNode}) ->
  +            assert_no_xattrs_set(TestNode, FileGuid, Config),
               true;
           (expected_success, #api_test_ctx{node = TestNode, client = Client, data = #{<<"metadata">> := Xattrs}}) ->
               case {Client, maps:is_key(?ACL_KEY, Xattrs)} of
                   {?USER_IN_SPACE_2_AUTH, true} ->
                       % Only owner (?USER_IN_BOTH_SPACES) can set acl in posix mode
  -                    assert_no_xattrs_set(TestNode, FileGuid, Xattrs, Config);
  +                    ?assertMatch({error, ?ENODATA}, get_xattr(TestNode, FileGuid, ?ACL_KEY, Config), ?ATTEMPTS);
                   _ ->
                       assert_xattrs_set(Providers, FileGuid, Xattrs, Config),
                       remove_xattrs(TestNode, Providers, FileGuid, Xattrs, Config)
  
positive.code:         VerifyEnvFun,
          Providers,
          ?CLIENT_SPEC_FOR_SHARE_SCENARIOS(Config),
          ?SET_XATTRS_DATA_SPEC,
          _QsParams = [],
          Config
      ).
  
negative.code:                             <<"attr2">> => [null, null, ExampleJson]
                          }]}
                  end,
                  ?assertMatch(ExpResult, get_json(Node, FileGuid, Config), ?ATTEMPTS)
              end, Providers),
  
  