Module Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BoolOpOr NameLoad Str Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr TryFinally body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr finalbody Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str For NameStore ListLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str Str Str body Continue Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Str Dict Str Str NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Dict Str Str Str Num Str Num keyword Dict Str Str Str Str attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Str Dict Str Str NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Dict Str Str Str Str Str Str keyword Dict Str Str Str Str attr TupleLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Str Dict Str Str NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Dict Str Str Str Str Str Str keyword Dict Str Str Str Str attr TupleLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Num Str Dict Str Str NameLoad Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str BinOpAdd Str NameLoad keyword Dict Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad Call NameLoad NameLoad NameLoad keyword Dict Str Str Str Str attr TupleLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list
N/A N/A re N/A sys N/A fixtures keystoneclient.v3 client ksclient mox3 mox N/A six N/A testtools monascaclient.common http monascaclient exc N/A monascaclient.shell monascaclient.tests fakes TestCase N/A N/A testtools TestCase N/A set_fake_env N/A N/A self fake_env N/A N/A N/A client_env N/A OS_USERNAME OS_PASSWORD OS_USER_DOMAIN_ID OS_USER_DOMAIN_NAME OS_PROJECT_ID OS_PROJECT_NAME OS_AUTH_URL OS_REGION_NAME OS_AUTH_TOKEN OS_NO_CLIENT_AUTH OS_SERVICE_TYPE OS_DOMAIN_NAME OS_DOMAIN_ID OS_ENDPOINT_TYPE MONASCA_API_URL N/A key client_env N/A N/A N/A N/A self useFixture N/A N/A fixtures EnvironmentVariable key N/A N/A fake_env get key N/A assertRegexpMatches N/A N/A self text expected_regexp msg N/A None N/A N/A Fail the test unless the text matches the regular expression. N/A N/A isinstance expected_regexp N/A six string_types N/A N/A expected_regexp N/A N/A re compile expected_regexp N/A N/A N/A N/A expected_regexp search text N/A N/A msg N/A msg Regexp didn't match N/A msg N/A %s: %r not found in %r N/A msg N/A expected_regexp pattern text N/A N/A N/A self failureException msg N/A shell_error N/A N/A self argstr error_match N/A N/A N/A orig N/A sys stderr N/A N/A sys stderr N/A N/A six StringIO N/A _shell N/A N/A N/A monascaclient shell MonascaShell N/A e N/A N/A self assertRaises Exception N/A _shell main N/A N/A argstr split N/A N/A N/A self assertRegexpMatches N/A N/A e __str__ error_match N/A err N/A N/A N/A sys stderr getvalue N/A N/A N/A N/A sys stderr close N/A N/A sys stderr orig N/A err N/A N/A ShellBase N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ShellBase self setUp N/A N/A self m N/A N/A mox Mox N/A N/A N/A N/A self m StubOutWithMock ksclient Client N/A N/A N/A N/A self m StubOutWithMock N/A http HTTPClient json_request N/A N/A N/A N/A self m StubOutWithMock N/A http HTTPClient raw_request N/A N/A N/A self addCleanup N/A N/A self m VerifyAll N/A N/A N/A self addCleanup N/A N/A self m UnsetStubs unset_exc_verbose N/A N/A N/A N/A N/A N/A exc verbose 0 N/A N/A N/A N/A self addCleanup unset_exc_verbose N/A shell N/A N/A self argstr N/A N/A N/A orig N/A sys stdout N/A N/A N/A N/A N/A N/A sys stdout N/A N/A six StringIO N/A _shell N/A N/A N/A monascaclient shell MonascaShell N/A N/A N/A _shell main N/A N/A argstr split N/A N/A self subcommands N/A N/A N/A _shell subcommands keys N/A N/A N/A SystemExit N/A N/A N/A exc_type exc_value exc_traceback N/A N/A sys exc_info N/A N/A N/A self assertEqual 0 N/A exc_value code N/A N/A out N/A N/A N/A sys stdout getvalue N/A N/A N/A N/A sys stdout close N/A N/A sys stdout orig N/A out N/A N/A ShellTestCommon N/A ShellBase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ShellTestCommon self setUp N/A test_help_unknown_command N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A exc CommandError N/A self shell help foofoo N/A test_help N/A N/A self N/A N/A N/A required N/A ^usage: monasca (?m)^See "monasca help COMMAND" for help on a specific command N/A argstr N/A --help help N/A N/A help_text N/A N/A self shell argstr N/A r required N/A N/A N/A N/A self assertRegexpMatches help_text r N/A test_command_help N/A N/A self N/A N/A N/A output N/A N/A self shell help help N/A N/A N/A self assertIn usage: monasca help [<subcommand>] output N/A subcommands N/A list N/A self subcommands N/A command subcommands N/A N/A N/A N/A N/A command replace _ - bash-completion N/A N/A N/A output1 N/A N/A self shell N/A help %s command N/A output2 N/A N/A self shell N/A %s --help command N/A N/A N/A self assertEqual output1 output2 N/A N/A N/A self assertRegexpMatches output1 N/A ^usage: monasca %s command N/A test_help_on_subcommand N/A N/A self N/A N/A N/A required N/A ^usage: monasca metric-create (?m)^Create metric N/A argstrings N/A help metric-create N/A argstr argstrings N/A N/A help_text N/A N/A self shell argstr N/A r required N/A N/A N/A N/A self assertRegexpMatches help_text r N/A N/A ShellTestMonascaCommands N/A ShellBase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ShellTestMonascaCommands self setUp N/A N/A N/A self _set_fake_env N/A _set_fake_env N/A N/A self N/A N/A N/A fake_env N/A OS_USERNAME OS_PASSWORD OS_PROJECT_NAME OS_AUTH_URL username password project_name http://no.where N/A N/A N/A self set_fake_env fake_env N/A _script_keystone_client N/A N/A self N/A N/A N/A N/A N/A fakes script_keystone_client N/A test_bad_metrics_create_subcommand N/A N/A self N/A N/A N/A argstrings N/A metric-create metric1 metric-create 123 metric-create N/A _shell N/A N/A N/A monascaclient shell MonascaShell N/A argstr argstrings N/A N/A N/A N/A self assertRaises SystemExit N/A _shell main N/A N/A argstr split N/A test_good_metrics_create_subcommand N/A N/A self N/A N/A N/A N/A N/A self _script_keystone_client N/A resp N/A N/A fakes FakeHTTPResponse 204 Created N/A location http://no.where/v2.0/metrics None N/A N/A N/A N/A N/A N/A http HTTPClient json_request POST /metrics data N/A timestamp name value 1395691090 metric1 123.0 headers N/A X-Auth-Key X-Auth-User password username AndReturn N/A resp None N/A N/A N/A N/A self m ReplayAll N/A argstrings N/A metric-create metric1 123 --time 1395691090 N/A argstr argstrings N/A N/A retvalue N/A N/A self shell argstr N/A N/A N/A self assertRegexpMatches retvalue ^Success N/A test_bad_notifications_create_missing_args_subcommand N/A N/A self N/A N/A N/A argstrings N/A notification-create email1 metric1@hp.com N/A _shell N/A N/A N/A monascaclient shell MonascaShell N/A argstr argstrings N/A N/A N/A N/A self assertRaises SystemExit N/A _shell main N/A N/A argstr split N/A test_bad_notifications_create_type_subcommand N/A N/A self N/A N/A N/A N/A N/A self _script_keystone_client N/A argstrings N/A notification-create email1 DOG metric1@hp.com N/A N/A N/A N/A self m ReplayAll N/A argstr argstrings N/A N/A retvalue N/A N/A self shell argstr N/A N/A N/A self assertRegexpMatches retvalue ^Invalid type N/A test_notifications_create_type_sms N/A N/A self N/A N/A N/A N/A N/A self _script_keystone_client N/A argstrings N/A notification-create sms1 SMS myphonenumber N/A N/A N/A N/A self m ReplayAll N/A argstr argstrings N/A N/A retvalue N/A N/A self shell argstr N/A N/A N/A self assertRegexpMatches retvalue ^Invalid type N/A test_good_notifications_create_subcommand N/A N/A self N/A N/A N/A N/A N/A self _script_keystone_client N/A resp N/A N/A fakes FakeHTTPResponse 201 Created N/A location http://no.where/v2.0/notification-methods None N/A N/A N/A N/A N/A N/A http HTTPClient json_request POST /notification-methods data N/A name type address email1 EMAIL john.doe@hp.com headers N/A X-Auth-Key X-Auth-User password username AndReturn N/A resp id N/A N/A N/A N/A self m ReplayAll N/A argstrings N/A notification-create email1 EMAIL john.doe@hp.com N/A argstr argstrings N/A N/A retvalue N/A N/A self shell argstr N/A N/A N/A self assertRegexpMatches retvalue id N/A test_good_notifications_create_subcommand_webhook N/A N/A self N/A N/A N/A N/A N/A self _script_keystone_client N/A resp N/A N/A fakes FakeHTTPResponse 201 Created N/A location http://no.where/v2.0/notification-methods None N/A N/A N/A N/A N/A N/A http HTTPClient json_request POST /notification-methods data N/A name type address mypost WEBHOOK http://localhost:8080 headers N/A X-Auth-Key X-Auth-User password username AndReturn N/A resp id N/A N/A N/A N/A self m ReplayAll N/A argstrings N/A notification-create mypost WEBHOOK http://localhost:8080 N/A argstr argstrings N/A N/A retvalue N/A N/A self shell argstr N/A N/A N/A self assertRegexpMatches retvalue id N/A test_good_alarm_definition_update N/A N/A self N/A N/A N/A N/A N/A self _script_keystone_client N/A cmd alarm-definition-update N/A id 0495340b-58fd-4e1c-932b-5e6f9cc96490 N/A name alarm_name N/A description test_alarm_definition N/A expression avg(Test_Metric_1)>=10 N/A notif_id 16012650-0b62-4692-9103-2d04fe81cc93 N/A enabled True N/A match_by hostname N/A severity CRITICAL N/A resp N/A N/A fakes FakeHTTPResponse 201 Created N/A location http://no.where/v2.0/notification-methods None N/A N/A N/A N/A N/A N/A http HTTPClient json_request PUT N/A /alarm-definitions/ id data N/A name description expression alarm_actions undetermined_actions ok_actions match_by actions_enabled severity name description expression N/A notif_id N/A notif_id N/A notif_id N/A match_by N/A bool enabled severity headers N/A X-Auth-Key X-Auth-User password username AndReturn N/A resp id N/A N/A N/A N/A self m ReplayAll N/A args N/A cmd id name description expression notif_id notif_id notif_id enabled match_by severity N/A argstring N/A N/A join args N/A retvalue N/A N/A self shell argstring N/A N/A N/A self assertRegexpMatches retvalue id N/A N/A