-
Notifications
You must be signed in to change notification settings - Fork 3
Add filter tests #86
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingregressionLoss of functionality or degrading featuresLoss of functionality or degrading features
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingregressionLoss of functionality or degrading featuresLoss of functionality or degrading features
Describe the Bug
Filter expression are not recognized by the CLI, even when using the exact syntax from
juju-jockey info. This fix must include additional testing that recognizes this regression.At a minimum, we require:
Here is an example of the filtering not working in the current code:
$ juju-jockey machine -f ../juju-status.json 'hostname~juju' Usage: juju-jockey [-h] [-v] [-f FILE] [-H HOSTNAME] [-U USERNAME] [-S USERNAME] [-T SEC] [-J COMMAND] [-c DIR] [-C SEC] [--refresh] OBJECT [EXPRESSION ...] juju-jockey: error: unrecognized arguments: hostname~jujuI tried several different filter expression syntaxes with no success.
Expected Behavior
Filters should be applied to the list of queries objects and return the result.