Skip to content

Commit

Permalink
TESTING
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMasarweh committed May 22, 2023
1 parent d071bbf commit ca9e9c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rgw/rgw_admin.cc
Expand Up @@ -10517,6 +10517,11 @@ int main(int argc, const char **argv)
}

if (opt_cmd == OPT::PUBSUB_NOTIFICATION_RM) {
if (bucket_name.empty()) {
cerr << "ERROR: bucket name was not provided (via --bucket)" << std::endl;
return EINVAL;
}

int ret = init_bucket(user.get(), tenant, bucket_name, bucket_id, &bucket);
if (ret < 0) {
cerr << "ERROR: could not init bucket: " << cpp_strerror(-ret) << std::endl;
Expand Down
4 changes: 4 additions & 0 deletions src/test/cli/radosgw-admin/help.t
Expand Up @@ -188,6 +188,9 @@
script-package add add a lua package to the scripts allowlist
script-package rm remove a lua package from the scripts allowlist
script-package list get the lua packages allowlist
notification list list bucket notifications configuration
notification get get a bucket notifications configuration
notification rm remove a bucket notifications configuration
options:
--tenant=<tenant> tenant name
--user_ns=<namespace> namespace of user (oidc in case of users authenticated with oidc provider)
Expand Down Expand Up @@ -360,6 +363,7 @@

Bucket notifications options:
--topic bucket notifications topic name
--notification-id bucket notifications id

Script options:
--context context in which the script runs. one of: prerequest, postrequest, background, getdata, putdata
Expand Down

0 comments on commit ca9e9c5

Please sign in to comment.