Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore Call NameLoad keyword NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareNotIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareNotIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad Str Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr CompareNotIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad Str keyword Str Assign AttributeStore NameLoad attr Dict Str Str Dict Str Str Dict Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str Str Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareNotIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A json N/A unittest N/A time mock Mock swift.proxy.controllers InfoController swift.proxy.server Application ProxyApp swift.common utils swift.common.swob Request HTTPException TestInfoController N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A utils _swift_info N/A N/A N/A utils _swift_admin_info N/A N/A get_controller N/A N/A self expose_info disallowed_sections admin_key N/A None None None N/A N/A disallowed_sections N/A disallowed_sections N/A N/A app N/A Mock spec ProxyApp N/A N/A InfoController app None expose_info disallowed_sections admin_key N/A start_response N/A N/A self status headers N/A N/A N/A N/A N/A N/A self got_statuses append status N/A h headers N/A N/A N/A N/A N/A self got_headers append N/A N/A h N/A 0 N/A h N/A 1 N/A test_disabled_info N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info False N/A req N/A N/A Request blank /info environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 403 Forbidden N/A str resp N/A test_get_info N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A req N/A N/A Request blank /info environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 200 OK N/A str resp N/A info N/A N/A json loads N/A resp body N/A N/A N/A self assertTrue N/A admin info N/A N/A N/A self assertTrue N/A foo info N/A N/A N/A self assertTrue N/A bar N/A info N/A foo N/A N/A N/A self assertEqual N/A N/A info N/A foo N/A bar baz N/A test_options_info N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True N/A req N/A N/A Request blank /info environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller OPTIONS req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 200 OK N/A str resp N/A N/A N/A self assertTrue N/A Allow N/A resp headers N/A test_get_info_cors N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A req N/A N/A Request blank /info environ N/A REQUEST_METHOD GET headers N/A Origin http://example.com N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 200 OK N/A str resp N/A info N/A N/A json loads N/A resp body N/A N/A N/A self assertTrue N/A admin info N/A N/A N/A self assertTrue N/A foo info N/A N/A N/A self assertTrue N/A bar N/A info N/A foo N/A N/A N/A self assertEqual N/A N/A info N/A foo N/A bar baz N/A N/A N/A self assertTrue N/A Access-Control-Allow-Origin N/A resp headers N/A N/A N/A self assertTrue N/A Access-Control-Expose-Headers N/A resp headers N/A test_head_info N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A req N/A N/A Request blank /info environ N/A REQUEST_METHOD HEAD N/A resp N/A N/A controller HEAD req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 200 OK N/A str resp N/A test_disallow_info N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True disallowed_sections N/A foo2 N/A N/A utils _swift_info N/A foo foo2 N/A bar baz N/A bar2 baz2 N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A req N/A N/A Request blank /info environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 200 OK N/A str resp N/A info N/A N/A json loads N/A resp body N/A N/A N/A self assertTrue N/A foo info N/A N/A N/A self assertTrue N/A bar N/A info N/A foo N/A N/A N/A self assertEqual N/A N/A info N/A foo N/A bar baz N/A N/A N/A self assertTrue N/A foo2 info N/A test_disabled_admin_info N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True admin_key N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A expires N/A int N/A N/A N/A time time 86400 N/A sig N/A N/A utils get_hmac GET /info expires N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 403 Forbidden N/A str resp N/A test_get_admin_info N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True admin_key secret-admin-key N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A expires N/A int N/A N/A N/A time time 86400 N/A sig N/A N/A utils get_hmac GET /info expires secret-admin-key N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 200 OK N/A str resp N/A info N/A N/A json loads N/A resp body N/A N/A N/A self assertTrue N/A admin info N/A N/A N/A self assertTrue N/A qux N/A info N/A admin N/A N/A N/A self assertTrue N/A quux N/A N/A info N/A admin N/A qux N/A N/A N/A self assertEqual N/A N/A N/A info N/A admin N/A qux N/A quux corge N/A test_head_admin_info N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True admin_key secret-admin-key N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A expires N/A int N/A N/A N/A time time 86400 N/A sig N/A N/A utils get_hmac GET /info expires secret-admin-key N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD HEAD N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 200 OK N/A str resp N/A expires N/A int N/A N/A N/A time time 86400 N/A sig N/A N/A utils get_hmac HEAD /info expires secret-admin-key N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD HEAD N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 200 OK N/A str resp N/A test_get_admin_info_invalid_method N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True admin_key secret-admin-key N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A expires N/A int N/A N/A N/A time time 86400 N/A sig N/A N/A utils get_hmac HEAD /info expires secret-admin-key N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 401 Unauthorized N/A str resp N/A test_get_admin_info_invalid_expires N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True admin_key secret-admin-key N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A expires 1 N/A sig N/A N/A utils get_hmac GET /info expires secret-admin-key N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 401 Unauthorized N/A str resp N/A expires abc N/A sig N/A N/A utils get_hmac GET /info expires secret-admin-key N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 401 Unauthorized N/A str resp N/A test_get_admin_info_invalid_path N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True admin_key secret-admin-key N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A expires N/A int N/A N/A N/A time time 86400 N/A sig N/A N/A utils get_hmac GET /foo expires secret-admin-key N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 401 Unauthorized N/A str resp N/A test_get_admin_info_invalid_key N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True admin_key secret-admin-key N/A N/A utils _swift_info N/A foo N/A bar baz N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A expires N/A int N/A N/A N/A time time 86400 N/A sig N/A N/A utils get_hmac GET /foo expires invalid-admin-key N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 401 Unauthorized N/A str resp N/A test_admin_disallow_info N/A N/A self N/A N/A N/A controller N/A N/A self get_controller expose_info True disallowed_sections N/A foo2 admin_key secret-admin-key N/A N/A utils _swift_info N/A foo foo2 N/A bar baz N/A bar2 baz2 N/A N/A utils _swift_admin_info N/A qux N/A quux corge N/A expires N/A int N/A N/A N/A time time 86400 N/A sig N/A N/A utils get_hmac GET /info expires secret-admin-key N/A path N/A N/A /info?swiftinfo_sig={sig}&swiftinfo_expires={expires} format sig sig expires expires N/A req N/A N/A Request blank path environ N/A REQUEST_METHOD GET N/A resp N/A N/A controller GET req N/A N/A N/A self assertTrue N/A isinstance resp HTTPException N/A N/A N/A self assertEqual 200 OK N/A str resp N/A info N/A N/A json loads N/A resp body N/A N/A N/A self assertTrue N/A foo2 info N/A N/A N/A self assertTrue N/A admin info N/A N/A N/A self assertTrue N/A disallowed_sections N/A info N/A admin N/A N/A N/A self assertTrue N/A foo2 N/A N/A info N/A admin N/A disallowed_sections N/A N/A N/A self assertTrue N/A qux N/A info N/A admin N/A N/A N/A self assertTrue N/A quux N/A N/A info N/A admin N/A qux N/A N/A N/A self assertEqual N/A N/A N/A info N/A admin N/A qux N/A quux corge N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main