Skip to content

Commit

Permalink
fix logging tests
Browse files Browse the repository at this point in the history
Signed-off-by: Romy <[email protected]>
  • Loading branch information
romayalon committed Aug 20, 2024
1 parent 3159db9 commit 097af33
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/manage_nsfs/manage_nsfs_logging.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/* Copyright (C) 2024 NooBaa */
'use strict';

const AWS = require('aws-sdk');
const config = require('../../config');
const { throw_cli_error, write_stdout_response} = require('../manage_nsfs/manage_nsfs_cli_utils');
const http_utils = require('../util/http_utils');
const { CONFIG_TYPES } = require('../sdk/config_fs');
const { export_logs_to_target } = require('../util/bucket_logs_utils');
const ManageCLIError = require('../manage_nsfs/manage_nsfs_cli_errors').ManageCLIError;
const ManageCLIResponse = require('../manage_nsfs/manage_nsfs_cli_responses').ManageCLIResponse;
const { export_logs_to_target } = require('../util/bucket_logs_utils');
const http_utils = require('../util/http_utils');
const AWS = require('aws-sdk');
const { throw_cli_error, write_stdout_response} = require('../manage_nsfs/manage_nsfs_cli_utils');

let config_fs;
/** This command goes over the logs in the persistent log and move the entries to log objects in the target buckets
Expand Down Expand Up @@ -40,7 +41,8 @@ async function export_bucket_logging(shared_config_fs) {
async function get_bucket_owner_keys(log_bucket_name) {
const log_bucket_config_data = await config_fs.get_bucket_by_name(log_bucket_name);
const log_bucket_owner = log_bucket_config_data.owner_account;
const owner_config_data = await config_fs.get_identities_by_id(log_bucket_owner, { show_secrets: true, decrypt_secret_key: true });
const owner_config_data = await config_fs.get_identity_by_id(log_bucket_owner,
CONFIG_TYPES.ACCOUNT, { show_secrets: true, decrypt_secret_key: true });
return owner_config_data.access_keys;
}

Expand Down

0 comments on commit 097af33

Please sign in to comment.