Module Import alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return Call Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str Str Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareIn Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr CompareNotIn Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr DictComp BinOpAdd Str NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr DictComp BinOpAdd Str NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Assign NameStore Call NameLoad Dict Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body For NameStore TupleLoad Dict AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest swift.common.swob Request Response swift.common.middleware gatekeeper FakeApp N/A object N/A __init__ N/A N/A self headers N/A None N/A N/A N/A headers None N/A N/A headers N/A N/A N/A self headers headers N/A N/A self req None N/A __call__ N/A N/A self env start_response N/A N/A N/A N/A self req N/A Request env N/A N/A N/A Response request N/A self req body FAKE APP headers N/A self headers env start_response N/A N/A FakeMiddleware N/A object N/A __init__ N/A N/A self app conf header_list N/A None N/A N/A N/A self app app N/A N/A self conf conf N/A N/A self header_list header_list N/A __call__ N/A N/A self env start_response N/A N/A fake_resp N/A N/A status response_headers exc_info N/A None N/A N/A i N/A self header_list N/A N/A N/A N/A response_headers append i N/A N/A start_response status response_headers exc_info N/A N/A N/A N/A self app env fake_resp N/A N/A TestGatekeeper N/A N/A unittest TestCase N/A N/A methods N/A PUT POST GET DELETE HEAD COPY OPTIONS N/A allowed_headers N/A xx-account-sysmeta-foo xx-container-sysmeta-foo xx-object-sysmeta-foo x-account-meta-foo x-container-meta-foo x-object-meta-foo x-timestamp-foo value value value value value value value N/A sysmeta_headers N/A x-account-sysmeta- x-container-sysmeta- x-object-sysmeta- x-account-sysmeta-foo x-container-sysmeta-foo x-object-sysmeta-foo X-Account-Sysmeta-BAR X-Container-Sysmeta-BAR X-Object-Sysmeta-BAR value value value value value value value value value N/A x_backend_headers N/A X-Backend-Replication X-Backend-Replication-Headers true stuff N/A x_timestamp_headers N/A X-Timestamp 1455952805.719739 N/A forbidden_headers_out N/A dict N/A N/A N/A sysmeta_headers items N/A N/A x_backend_headers items N/A forbidden_headers_in N/A dict N/A N/A N/A sysmeta_headers items N/A N/A x_backend_headers items N/A shunted_headers_in N/A dict N/A N/A x_timestamp_headers items _assertHeadersEqual N/A N/A self expected actual N/A N/A N/A key expected N/A N/A N/A N/A self assertTrue N/A N/A N/A key lower actual N/A %s missing from %s N/A key actual N/A _assertHeadersAbsent N/A N/A self unexpected actual N/A N/A N/A key unexpected N/A N/A N/A N/A self assertTrue N/A N/A N/A key lower actual N/A %s is in %s N/A key actual N/A get_app N/A N/A self app global_conf N/A local_conf N/A N/A factory N/A N/A gatekeeper filter_factory global_conf local_conf N/A N/A factory app N/A test_ok_header N/A N/A self N/A N/A N/A req N/A N/A Request blank /v/a/c environ N/A REQUEST_METHOD PUT headers N/A self allowed_headers N/A fake_app N/A FakeApp N/A app N/A N/A self get_app fake_app N/A N/A resp N/A N/A req get_response app N/A N/A N/A self assertEqual 200 OK N/A resp status N/A N/A N/A self assertEqual N/A resp body FAKE APP N/A N/A N/A self _assertHeadersEqual N/A self allowed_headers N/A N/A fake_app req headers N/A _test_reserved_header_removed_inbound N/A N/A self method N/A N/A N/A headers N/A dict N/A self forbidden_headers_in N/A N/A N/A headers update N/A self allowed_headers N/A N/A N/A headers update N/A self shunted_headers_in N/A req N/A N/A Request blank /v/a/c environ N/A REQUEST_METHOD method headers headers N/A fake_app N/A FakeApp N/A app N/A N/A self get_app fake_app N/A N/A resp N/A N/A req get_response app N/A N/A N/A self assertEqual 200 OK N/A resp status N/A expected_headers N/A dict N/A self allowed_headers N/A N/A N/A expected_headers update N/A N/A X-Backend-Inbound- k v N/A N/A k v N/A N/A N/A self shunted_headers_in items N/A N/A N/A self _assertHeadersEqual expected_headers N/A N/A fake_app req headers N/A unexpected_headers N/A dict N/A N/A N/A N/A self forbidden_headers_in items N/A N/A N/A self shunted_headers_in items N/A N/A N/A self _assertHeadersAbsent unexpected_headers N/A N/A fake_app req headers N/A test_reserved_header_removed_inbound N/A N/A self N/A N/A N/A method N/A self methods N/A N/A N/A N/A self _test_reserved_header_removed_inbound method N/A _test_reserved_header_shunted_inbound N/A N/A self method N/A N/A N/A headers N/A dict N/A self shunted_headers_in N/A N/A N/A headers update N/A self allowed_headers N/A req N/A N/A Request blank /v/a/c environ N/A REQUEST_METHOD method headers headers N/A fake_app N/A FakeApp N/A app N/A N/A self get_app fake_app N/A shunt_inbound_x_timestamp true N/A resp N/A N/A req get_response app N/A N/A N/A self assertEqual 200 OK N/A resp status N/A expected_headers N/A dict N/A self allowed_headers N/A N/A N/A expected_headers update N/A N/A X-Backend-Inbound- k v N/A N/A k v N/A N/A N/A self shunted_headers_in items N/A N/A N/A self _assertHeadersEqual expected_headers N/A N/A fake_app req headers N/A N/A N/A self _assertHeadersAbsent N/A self shunted_headers_in N/A N/A fake_app req headers N/A test_reserved_header_shunted_inbound N/A N/A self N/A N/A N/A method N/A self methods N/A N/A N/A N/A self _test_reserved_header_shunted_inbound method N/A _test_reserved_header_shunt_bypassed_inbound N/A N/A self method N/A N/A N/A headers N/A dict N/A self shunted_headers_in N/A N/A N/A headers update N/A self allowed_headers N/A req N/A N/A Request blank /v/a/c environ N/A REQUEST_METHOD method headers headers N/A fake_app N/A FakeApp N/A app N/A N/A self get_app fake_app N/A shunt_inbound_x_timestamp false N/A resp N/A N/A req get_response app N/A N/A N/A self assertEqual 200 OK N/A resp status N/A expected_headers N/A dict N/A N/A N/A N/A self allowed_headers items N/A N/A N/A self shunted_headers_in items N/A N/A N/A self _assertHeadersEqual expected_headers N/A N/A fake_app req headers N/A test_reserved_header_shunt_bypassed_inbound N/A N/A self N/A N/A N/A method N/A self methods N/A N/A N/A N/A self _test_reserved_header_shunt_bypassed_inbound method N/A _test_reserved_header_removed_outbound N/A N/A self method N/A N/A N/A headers N/A dict N/A self forbidden_headers_out N/A N/A N/A headers update N/A self allowed_headers N/A req N/A N/A Request blank /v/a/c environ N/A REQUEST_METHOD method N/A fake_app N/A FakeApp headers headers N/A app N/A N/A self get_app fake_app N/A N/A resp N/A N/A req get_response app N/A N/A N/A self assertEqual 200 OK N/A resp status N/A N/A N/A self _assertHeadersEqual N/A self allowed_headers N/A resp headers N/A N/A N/A self _assertHeadersAbsent N/A self forbidden_headers_out N/A resp headers N/A test_reserved_header_removed_outbound N/A N/A self N/A N/A N/A method N/A self methods N/A N/A N/A N/A self _test_reserved_header_removed_outbound method N/A _test_duplicate_headers_not_removed N/A N/A self method app_hdrs N/A N/A fake_factory N/A N/A global_conf N/A local_conf N/A N/A conf N/A N/A global_conf copy N/A N/A N/A conf update local_conf N/A headers N/A N/A X-Header xxx N/A X-Header yyy fake_filter N/A N/A app N/A N/A N/A N/A FakeMiddleware app conf headers N/A N/A fake_filter N/A fake_start_response N/A N/A status response_headers exc_info N/A None N/A N/A hdr_list N/A N/A N/A k v response_headers N/A N/A N/A k X-Header N/A N/A N/A N/A hdr_list append v N/A N/A N/A self assertTrue N/A xxx hdr_list N/A N/A N/A self assertTrue N/A yyy hdr_list N/A N/A N/A self assertEqual N/A len hdr_list 2 N/A N/A req N/A N/A Request blank /v/a/c environ N/A REQUEST_METHOD method N/A fake_app N/A FakeApp headers app_hdrs N/A factory N/A N/A gatekeeper filter_factory N/A N/A factory_wrap N/A fake_factory N/A N/A app N/A factory N/A factory_wrap fake_app N/A N/A app N/A req environ fake_start_response N/A test_duplicate_headers_not_removed N/A N/A self N/A N/A N/A method N/A self methods N/A N/A app_hdrs N/A N/A N/A self forbidden_headers_out N/A N/A N/A N/A self _test_duplicate_headers_not_removed method app_hdrs N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main