anchor.diff:  
   
   %%--------------------------------------------------------------------
  +%% @private
   %% @doc
   %% Tests permissions needed to perform operation in share mode.
   %% If operation is not nat available in share mode then checks
   %% that even with all perms set ?EACCES should be returned.
   %% @end
   %%--------------------------------------------------------------------
  +-spec run_share_test_scenarios(file_meta:path(), perms_test_spec(), ct_config()) ->
  +    ok | no_return().
   run_share_test_scenarios(_ScenariosRootDirPath, #perms_test_spec{
       available_in_share_mode = inapplicable
   }, _Config) ->
  
positive.code:     % Even with all perms set operation should fail
      ?assertMatchWithPerms(
          {error, ?EACCES},
          Operation(FileOwnerSessId, SessId, TestCaseRootDirPath, ExtraData),
          ScenarioName,
          maps:map(fun(_, _) -> <<"all">> end, PermsPerFile)
      );
  run_share_test_scenario(
      Node, FileOwnerSessId, SessId, TestCaseRootDirPath, ScenarioName, Operation,
      PermsPerFile, ExtraData, posix, _IsAvailableInShareMode = true, TestSpec
  ) ->
      {ComplementaryPosixPermsPerFile, RequiredPosixPerms} = get_complementary_posix_perms(
          maps:map(fun(_, Perms) -> perms_to_posix_perms(Perms) end, PermsPerFile)
      ),
      run_standard_posix_tests(
          Node, FileOwnerSessId, SessId, TestCaseRootDirPath, ScenarioName,
          Operation, ComplementaryPosixPermsPerFile, RequiredPosixPerms,
          ExtraData, other, TestSpec
      );
  run_share_test_scenario(
      Node, FileOwnerSessId, SessId, TestCaseRootDirPath, ScenarioName, _Operation,
      PermsPerFile, ExtraData, {acl, AllowOrDeny}, _IsAvailableInShareMode = true, TestSpec
  ) ->
      {ComplementaryPermsPerFile, AllRequiredPerms} = get_complementary_perms(
          Node, PermsPerFile
      ),
      run_acl_perms_scenario(
          Node, FileOwnerSessId, SessId, TestCaseRootDirPath, ScenarioName,
          ComplementaryPermsPerFile, AllRequiredPerms, ExtraData,
          ?everyone, ?no_flags_mask, AllowOrDeny, TestSpec
      ).
  
  
  
negative.code:     owner_user = FileOwner,
      space_user = SpaceUser,
      other_user = OtherUser,
      requires_traverse_ancestors = RequiresTraverseAncestors,
      files = Files
  } = TestSpec, Config) ->
      FileOwnerUserSessId = ?config({session_id, {FileOwner, ?GET_DOMAIN(Node)}}, Config),
      SpaceUserSessId = ?config({session_id, {SpaceUser, ?GET_DOMAIN(Node)}}, Config),
      OtherUserSessId = ?config({session_id, {OtherUser, ?GET_DOMAIN(Node)}}, Config),
  
      lists:foreach(fun({SessId, PermsType, ScenarioName}) ->
          ScenarioRootDirPath = ?SCENARIO_DIR(ScenariosRootDirPath, ScenarioName),
  
          % Create necessary file hierarchy
          {PermsPerFile, ExtraData0} = create_files(
  