{"action":"created","issue":{"url":"https://api.github.com/repos/whit537/cloud-custodian/issues/45","repository_url":"https://api.github.com/repos/whit537/cloud-custodian","labels_url":"https://api.github.com/repos/whit537/cloud-custodian/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/whit537/cloud-custodian/issues/45/comments","events_url":"https://api.github.com/repos/whit537/cloud-custodian/issues/45/events","html_url":"https://github.com/whit537/cloud-custodian/issues/45","id":260195091,"number":45,"title":"[-v] run functional tests against live AWS","user":{"login":"whit537","id":134455,"avatar_url":"https://avatars2.githubusercontent.com/u/134455?v=4","gravatar_id":"","url":"https://api.github.com/users/whit537","html_url":"https://github.com/whit537","followers_url":"https://api.github.com/users/whit537/followers","following_url":"https://api.github.com/users/whit537/following{/other_user}","gists_url":"https://api.github.com/users/whit537/gists{/gist_id}","starred_url":"https://api.github.com/users/whit537/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whit537/subscriptions","organizations_url":"https://api.github.com/users/whit537/orgs","repos_url":"https://api.github.com/users/whit537/repos","events_url":"https://api.github.com/users/whit537/events{/privacy}","received_events_url":"https://api.github.com/users/whit537/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":177,"created_at":"2017-09-25T08:38:16Z","updated_at":"2017-11-03T10:38:08Z","closed_at":null,"author_association":"OWNER","body":"https://github.com/capitalone/cloud-custodian/issues/903"},"comment":{"url":"https://api.github.com/repos/whit537/cloud-custodian/issues/comments/341669060","html_url":"https://github.com/whit537/cloud-custodian/issues/45#issuecomment-341669060","issue_url":"https://api.github.com/repos/whit537/cloud-custodian/issues/45","id":341669060,"user":{"login":"whit537","id":134455,"avatar_url":"https://avatars2.githubusercontent.com/u/134455?v=4","gravatar_id":"","url":"https://api.github.com/users/whit537","html_url":"https://github.com/whit537","followers_url":"https://api.github.com/users/whit537/followers","following_url":"https://api.github.com/users/whit537/following{/other_user}","gists_url":"https://api.github.com/users/whit537/gists{/gist_id}","starred_url":"https://api.github.com/users/whit537/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whit537/subscriptions","organizations_url":"https://api.github.com/users/whit537/orgs","repos_url":"https://api.github.com/users/whit537/repos","events_url":"https://api.github.com/users/whit537/events{/privacy}","received_events_url":"https://api.github.com/users/whit537/received_events","type":"User","site_admin":false},"created_at":"2017-11-03T10:38:08Z","updated_at":"2017-11-03T10:38:08Z","author_association":"OWNER","body":"```\r\n(py27) $ C7N_FUNCTIONAL=yes AWS_DEFAULT_REGION=us-east-2 py.test -m functional tests/test_lambda.py -k _matched\r\n============================================ test session starts =============================================\r\nplatform darwin -- Python 2.7.13, pytest-3.2.3, py-1.4.34, pluggy-0.4.0\r\nrootdir: /Users/whit537/workbench/capitalone/cloud-custodian, inifile: tox.ini\r\nplugins: xdist-1.20.1, forked-0.2, cov-2.5.1\r\ncollected 8 items                                                                                             \r\n\r\ntests/test_lambda.py \r\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> PDB set_trace (IO-capturing turned off) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\r\n> /Users/whit537/workbench/capitalone/cloud-custodian/c7n/manager.py(90)filter_resources()\r\n-> if event and event.get('debug', False):\r\n(Pdb) pp resources\r\n[{u'CodeSha256': u'NLea8ZDC16RKlQpOPkJ3qYnYL4u5eUGsGw9SZGrB910=',\r\n  u'CodeSize': 168,\r\n  u'Description': u'',\r\n  u'FunctionArn': u'arn:aws:lambda:us-east-2:644160558196:function:func-b',\r\n  u'FunctionName': u'func-b',\r\n  u'Handler': u'index.handler',\r\n  u'LastModified': u'2017-11-03T10:37:03.643+0000',\r\n  u'MemorySize': 128,\r\n  u'Role': u'arn:aws:iam::644160558196:role/lambda_basic_execution',\r\n  u'Runtime': u'python2.7',\r\n  u'Tags': [],\r\n  u'Timeout': 3,\r\n  u'TracingConfig': {u'Mode': u'PassThrough'},\r\n  u'Version': u'$LATEST',\r\n  u'c7n:MatchedFilters': [u'FunctionName']}]\r\n(Pdb) pp resources\r\n[{u'CodeSha256': u'NLea8ZDC16RKlQpOPkJ3qYnYL4u5eUGsGw9SZGrB910=',\r\n  u'CodeSize': 168,\r\n  u'CrossAccountViolations': [{u'Action': u'lambda:InvokeFunction',\r\n                               u'Effect': u'Allow',\r\n                               u'Principal': u'*',\r\n                               u'Resource': u'arn:aws:lambda:us-east-2:644160558196:function:func-b',\r\n                               u'Sid': u'PublicInvoke'}],\r\n  u'Description': u'',\r\n  u'FunctionArn': u'arn:aws:lambda:us-east-2:644160558196:function:func-b',\r\n  u'FunctionName': u'func-b',\r\n  u'Handler': u'index.handler',\r\n  u'LastModified': u'2017-11-03T10:37:03.643+0000',\r\n  u'MemorySize': 128,\r\n  u'Policy': u'{\"Version\":\"2012-10-17\",\"Id\":\"default\",\"Statement\":[{\"Sid\":\"PublicInvoke\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-east-2:644160558196:function:func-b\"},{\"Sid\":\"SharedInvoke\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::185106417252:root\"},\"Action\":\"lambda:InvokeFunction\",\"Resource\":\"arn:aws:lambda:us-east-2:644160558196:function:func-b\"}]}',\r\n  u'Role': u'arn:aws:iam::644160558196:role/lambda_basic_execution',\r\n  u'Runtime': u'python2.7',\r\n  u'Tags': [],\r\n  u'Timeout': 3,\r\n  u'TracingConfig': {u'Mode': u'PassThrough'},\r\n  u'Version': u'$LATEST',\r\n  u'c7n:MatchedFilters': [u'FunctionName']}]\r\n(Pdb)\r\n```"}}
{"actor":{"display_login":"whit537"}}