Skip to content

Adding unittests for custom monitor commands#5

Merged
vishrutshah merged 2 commits intomonitor-clifrom
unittest-monitor-custom
Mar 7, 2017
Merged

Adding unittests for custom monitor commands#5
vishrutshah merged 2 commits intomonitor-clifrom
unittest-monitor-custom

Conversation

@vishrutshah
Copy link
Owner

Adding unittests for custom monitor commands.

@troydai @tjprescott @derekbekoe Please review the PR when you get a chance. Thanks!

Copy link

@derekbekoe derekbekoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Instead of the assert False pattern, can you not assert of the boolean result itself?
e.g. assert bool(re.search(regex, filter_output))

Copy link

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vishrutshah
Copy link
Owner Author

Thanks for the review!!

@vishrutshah vishrutshah merged commit 72ac3d8 into monitor-cli Mar 7, 2017
@vishrutshah vishrutshah deleted the unittest-monitor-custom branch March 7, 2017 03:45
vishrutshah added a commit that referenced this pull request Mar 16, 2017
Adding list command for all azure monitor data plane
Adding help docs for az monitor data plane commands
Adding commands for management place of Azure monitor service
Updating azure-monitor-cli to azure-mgmt-monitor and azure-monitor sdk
Using nargs to input list of metric-names
Implement filter for metrics list command
Implement filter and select in activity-logs command
Implement filter and select for tenant-activity-logs command
Adding scaffold command in autoscale-settings (#4)
Adding unittests for custom monitor commands (#5)
Rename expanded params and resolve bugs

* Fix expand parameters bug in util to support any parameters
* Adding --filters into activity-logs & tenant-activity-logs
* Adding --ids support into alert-rules & autoscale-settings' show and delete commands
* ignoring filter for alert-rules and autoscale-settings list
vishrutshah added a commit that referenced this pull request Mar 22, 2017
… plane (Azure#2534)

* Adding basic structure for monitor service
* Adding list command for all azure monitor data plane
* Adding help docs for az monitor data plane commands
* Adding commands for management place of Azure monitor service
* Updating azure-monitor-cli to azure-mgmt-monitor and azure-monitor sdk
* Using nargs to input list of metric-names
* Implement filter for metrics list command
* Implement filter and select in activity-logs command
* Implement filter and select for tenant-activity-logs command
* Adding scaffold command in autoscale-settings (#4)
* Adding unittests for custom monitor commands (#5)
* Rename expanded params and resolve bugs

* Fix expand parameters bug in util to support any parameters
* Adding --filters into activity-logs & tenant-activity-logs
* Adding --ids support into alert-rules & autoscale-settings' show and delete commands
* ignoring filter for alert-rules and autoscale-settings list

* Help docs for all monitor commands to review

* rename activity-logs to activity-log

* Removing tenant-activity-logs command

* Removing event-categories commands as less useful

* Update version to 0.0.1b1+dev

* Renamed service-dignostic-settings to diagnostic-settings

* update help for review

* Update unittests for filters

* Renaming parameter_abc into parameter

* marking metric-names as required parameter for metrics list

* Removing help.json from the review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants