cmd
: add pop-db
as a flux account command
#487
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The
pop-db
command is located in a separate file in thesrc/cmd/
directory and thus requires a different method of calling it than the other flux-accounting commands, i.e you need to writeflux account-pop-db
instead offlux account pop-db
.This PR moves this file to the directory containing the other Python bindings for flux-accounting and adds it as a regular command like the other bindings so that you can just call it like
flux account pop-db
.It removes the methods and
--path
command line argument that deal with establishing a connection to the flux-accounting DB since the systemd service will handle establishing that connection.I've also added both
pop-db
andexport-db
as commands that are tested int1026-flux-account-perms.t
to ensure that they require admin privileges to be run.Finally, it adjusts the calls in
t1009-pop-db.t
andt1016-export-db.t
and top-level README forpop-db
to account for the change.