Skip to content

Commit

Permalink
print
Browse files Browse the repository at this point in the history
Signed-off-by: Romy <[email protected]>
  • Loading branch information
romayalon committed Sep 15, 2024
1 parent 9de2852 commit 47fc8a2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1775,6 +1775,7 @@ describe('cli account flow distinguished_name - permissions', function() {
const config_root = path.join(tmp_fs_path, 'config_root_manage_dn');
const config_fs = new ConfigFS(config_root);
const new_buckets_path = path.join(tmp_fs_path, 'new_buckets_path_user_dn_test/');

const accounts = {
root: {
cli_options: {
Expand Down Expand Up @@ -1954,15 +1955,16 @@ describe('cli account flow distinguished_name - permissions', function() {
let action = ACTIONS.ADD;
config.NC_DISABLE_ACCESS_CHECK = true;
set_nc_config_dir_in_config(config_root);
await config_fs.create_config_json_file(JSON.stringify({ NC_DISABLE_ACCESS_CHECK: false }));
await config_fs.create_config_json_file(JSON.stringify({ NC_DISABLE_ACCESS_CHECK: true }));
const res = await exec_manage_cli(type, action, accounts.inaccessible_user.cli_options);
await config_fs.delete_config_json_file();
console.log('RES: ', res);
expect(JSON.parse(res).response.code).toEqual(ManageCLIResponse.AccountCreated.code);
assert_account(JSON.parse(res).response.reply, { ...accounts.inaccessible_user.cli_options }, false);
action = ACTIONS.DELETE;
const delete_inaccessible_options = _.omit(accounts.inaccessible_user.cli_options, ['new_buckets_path', 'user']);
await exec_manage_cli(type, action, delete_inaccessible_options);
config.NC_DISABLE_ACCESS_CHECK = false;
await config_fs.delete_config_json_file();
}, timeout);
});

Expand Down

0 comments on commit 47fc8a2

Please sign in to comment.