{"action":"created","comment":{"url":"https://api.github.com/repos/nervous-systems/eulalie/pulls/comments/72686677","id":72686677,"diff_hunk":"@@ -0,0 +1,39 @@\n+(ns eulalie.test.lambda\n+  (:require [eulalie.lambda.util :as lu]\n+            #? (:clj [clojure.test :refer [testing]]\n+                :cljs [cljs.test :refer-macros [testing]])\n+            [eulalie.test.common :refer [issue-raw! creds]]\n+            [glossop.core #? (:clj :refer :cljs :refer-macros) [go-catching <?]]\n+            [eulalie.test.common :as test.common\n+             #? (:clj :refer :cljs :refer-macros) [deftest is]]\n+            [eulalie.util :refer [env!]]))\n+\n+(def lambda-role-arn (env! \"LAMBDA_ROLE_ARN\"))\n+(def function-zipped \"UEsDBAoAAAAAAEBL+0iHxOHaUwAAAFMAAAAHAAAAdGVzdC5qc2V4cG9ydHMuaGFuZGxlciA9IChldmVudCwgY29udGV4dCwgY2FsbGJhY2spID0+IHsgY2FsbGJhY2sobnVsbCwgIkhlbGxvIHdvcmxkIik7IH07UEsBAhQACgAAAAAAQEv7SIfE4dpTAAAAUwAAAAcAAAAAAAAAAAAAAAAAAAAAAHRlc3QuanNQSwUGAAAAAAEAAQA1AAAAeAAAAAAA\")\n+(defn function-name [] (str \"eulalie-test-\" (rand-int 2147483647))) ;JVM Integer/MAX_VALUE\n+\n+(deftest ^:integration ^:aws create-test-function\n+         (if (not-empty (:secret-key creds))\n+           (let [function-name (function-name)]\n+             (go-catching\n+               (testing \"Create function\"\n+                 (is (= 201 (get-in (<? (issue-raw! {:creds creds","path":"test/eulalie/test/lambda.cljc","position":20,"original_position":20,"commit_id":"b5230b353512d1d6f64f430ea19ecf5c88a4d6fe","original_commit_id":"b5230b353512d1d6f64f430ea19ecf5c88a4d6fe","user":{"login":"lfn3","id":3586137,"avatar_url":"https://avatars.githubusercontent.com/u/3586137?v=3","gravatar_id":"","url":"https://api.github.com/users/lfn3","html_url":"https://github.com/lfn3","followers_url":"https://api.github.com/users/lfn3/followers","following_url":"https://api.github.com/users/lfn3/following{/other_user}","gists_url":"https://api.github.com/users/lfn3/gists{/gist_id}","starred_url":"https://api.github.com/users/lfn3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfn3/subscriptions","organizations_url":"https://api.github.com/users/lfn3/orgs","repos_url":"https://api.github.com/users/lfn3/repos","events_url":"https://api.github.com/users/lfn3/events{/privacy}","received_events_url":"https://api.github.com/users/lfn3/received_events","type":"User","site_admin":false},"body":"The tests are skipped on travis, since `AWS_SECRET_KEY` isn't set.","created_at":"2016-07-28T19:29:42Z","updated_at":"2016-07-28T19:29:42Z","html_url":"https://github.com/nervous-systems/eulalie/pull/35#discussion_r72686677","pull_request_url":"https://api.github.com/repos/nervous-systems/eulalie/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/nervous-systems/eulalie/pulls/comments/72686677"},"html":{"href":"https://github.com/nervous-systems/eulalie/pull/35#discussion_r72686677"},"pull_request":{"href":"https://api.github.com/repos/nervous-systems/eulalie/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/nervous-systems/eulalie/pulls/35","id":79165012,"html_url":"https://github.com/nervous-systems/eulalie/pull/35","diff_url":"https://github.com/nervous-systems/eulalie/pull/35.diff","patch_url":"https://github.com/nervous-systems/eulalie/pull/35.patch","issue_url":"https://api.github.com/repos/nervous-systems/eulalie/issues/35","number":35,"state":"open","locked":false,"title":"Add methods to create and delete lambda functions.","user":{"login":"lfn3","id":3586137,"avatar_url":"https://avatars.githubusercontent.com/u/3586137?v=3","gravatar_id":"","url":"https://api.github.com/users/lfn3","html_url":"https://github.com/lfn3","followers_url":"https://api.github.com/users/lfn3/followers","following_url":"https://api.github.com/users/lfn3/following{/other_user}","gists_url":"https://api.github.com/users/lfn3/gists{/gist_id}","starred_url":"https://api.github.com/users/lfn3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfn3/subscriptions","organizations_url":"https://api.github.com/users/lfn3/orgs","repos_url":"https://api.github.com/users/lfn3/repos","events_url":"https://api.github.com/users/lfn3/events{/privacy}","received_events_url":"https://api.github.com/users/lfn3/received_events","type":"User","site_admin":false},"body":"Deletion was a little odd, since function-name has to be passed in\r\nthe body of the request, but is actually used in the url. And method\r\nalways has to be passed as :delete.\r\n\r\nThese could be wrapped in the utils namespace to make them easier to use,\r\nbut it's possibly better to alter their use in the core lambda ns.\r\n\r\nThe base64 string in the test ns was created from the test.js file in the\r\nproject here: https://github.com/lfn3/node-cljs-zip","created_at":"2016-07-28T09:39:22Z","updated_at":"2016-07-28T19:29:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6e1b2aba72db95e791f8aa2496dd041dd2c8c66","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nervous-systems/eulalie/pulls/35/commits","review_comments_url":"https://api.github.com/repos/nervous-systems/eulalie/pulls/35/comments","review_comment_url":"https://api.github.com/repos/nervous-systems/eulalie/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nervous-systems/eulalie/issues/35/comments","statuses_url":"https://api.github.com/repos/nervous-systems/eulalie/statuses/b5230b353512d1d6f64f430ea19ecf5c88a4d6fe","head":{"label":"lfn3:lambda-create-delete","ref":"lambda-create-delete","sha":"b5230b353512d1d6f64f430ea19ecf5c88a4d6fe","user":{"login":"lfn3","id":3586137,"avatar_url":"https://avatars.githubusercontent.com/u/3586137?v=3","gravatar_id":"","url":"https://api.github.com/users/lfn3","html_url":"https://github.com/lfn3","followers_url":"https://api.github.com/users/lfn3/followers","following_url":"https://api.github.com/users/lfn3/following{/other_user}","gists_url":"https://api.github.com/users/lfn3/gists{/gist_id}","starred_url":"https://api.github.com/users/lfn3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfn3/subscriptions","organizations_url":"https://api.github.com/users/lfn3/orgs","repos_url":"https://api.github.com/users/lfn3/repos","events_url":"https://api.github.com/users/lfn3/events{/privacy}","received_events_url":"https://api.github.com/users/lfn3/received_events","type":"User","site_admin":false},"repo":{"id":64202277,"name":"eulalie","full_name":"lfn3/eulalie","owner":{"login":"lfn3","id":3586137,"avatar_url":"https://avatars.githubusercontent.com/u/3586137?v=3","gravatar_id":"","url":"https://api.github.com/users/lfn3","html_url":"https://github.com/lfn3","followers_url":"https://api.github.com/users/lfn3/followers","following_url":"https://api.github.com/users/lfn3/following{/other_user}","gists_url":"https://api.github.com/users/lfn3/gists{/gist_id}","starred_url":"https://api.github.com/users/lfn3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfn3/subscriptions","organizations_url":"https://api.github.com/users/lfn3/orgs","repos_url":"https://api.github.com/users/lfn3/repos","events_url":"https://api.github.com/users/lfn3/events{/privacy}","received_events_url":"https://api.github.com/users/lfn3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lfn3/eulalie","description":"Asynchronous AWS client for Clojure & Clojurescript/Node","fork":true,"url":"https://api.github.com/repos/lfn3/eulalie","forks_url":"https://api.github.com/repos/lfn3/eulalie/forks","keys_url":"https://api.github.com/repos/lfn3/eulalie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lfn3/eulalie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lfn3/eulalie/teams","hooks_url":"https://api.github.com/repos/lfn3/eulalie/hooks","issue_events_url":"https://api.github.com/repos/lfn3/eulalie/issues/events{/number}","events_url":"https://api.github.com/repos/lfn3/eulalie/events","assignees_url":"https://api.github.com/repos/lfn3/eulalie/assignees{/user}","branches_url":"https://api.github.com/repos/lfn3/eulalie/branches{/branch}","tags_url":"https://api.github.com/repos/lfn3/eulalie/tags","blobs_url":"https://api.github.com/repos/lfn3/eulalie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lfn3/eulalie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lfn3/eulalie/git/refs{/sha}","trees_url":"https://api.github.com/repos/lfn3/eulalie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lfn3/eulalie/statuses/{sha}","languages_url":"https://api.github.com/repos/lfn3/eulalie/languages","stargazers_url":"https://api.github.com/repos/lfn3/eulalie/stargazers","contributors_url":"https://api.github.com/repos/lfn3/eulalie/contributors","subscribers_url":"https://api.github.com/repos/lfn3/eulalie/subscribers","subscription_url":"https://api.github.com/repos/lfn3/eulalie/subscription","commits_url":"https://api.github.com/repos/lfn3/eulalie/commits{/sha}","git_commits_url":"https://api.github.com/repos/lfn3/eulalie/git/commits{/sha}","comments_url":"https://api.github.com/repos/lfn3/eulalie/comments{/number}","issue_comment_url":"https://api.github.com/repos/lfn3/eulalie/issues/comments{/number}","contents_url":"https://api.github.com/repos/lfn3/eulalie/contents/{+path}","compare_url":"https://api.github.com/repos/lfn3/eulalie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lfn3/eulalie/merges","archive_url":"https://api.github.com/repos/lfn3/eulalie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lfn3/eulalie/downloads","issues_url":"https://api.github.com/repos/lfn3/eulalie/issues{/number}","pulls_url":"https://api.github.com/repos/lfn3/eulalie/pulls{/number}","milestones_url":"https://api.github.com/repos/lfn3/eulalie/milestones{/number}","notifications_url":"https://api.github.com/repos/lfn3/eulalie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lfn3/eulalie/labels{/name}","releases_url":"https://api.github.com/repos/lfn3/eulalie/releases{/id}","deployments_url":"https://api.github.com/repos/lfn3/eulalie/deployments","created_at":"2016-07-26T08:02:57Z","updated_at":"2016-07-26T08:02:58Z","pushed_at":"2016-07-28T10:07:39Z","git_url":"git://github.com/lfn3/eulalie.git","ssh_url":"git@github.com:lfn3/eulalie.git","clone_url":"https://github.com/lfn3/eulalie.git","svn_url":"https://github.com/lfn3/eulalie","homepage":"","size":284,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nervous-systems:master","ref":"master","sha":"8dfde2200c53e09e420cf7597e131475f127a964","user":{"login":"nervous-systems","id":8793968,"avatar_url":"https://avatars.githubusercontent.com/u/8793968?v=3","gravatar_id":"","url":"https://api.github.com/users/nervous-systems","html_url":"https://github.com/nervous-systems","followers_url":"https://api.github.com/users/nervous-systems/followers","following_url":"https://api.github.com/users/nervous-systems/following{/other_user}","gists_url":"https://api.github.com/users/nervous-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/nervous-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nervous-systems/subscriptions","organizations_url":"https://api.github.com/users/nervous-systems/orgs","repos_url":"https://api.github.com/users/nervous-systems/repos","events_url":"https://api.github.com/users/nervous-systems/events{/privacy}","received_events_url":"https://api.github.com/users/nervous-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":26725925,"name":"eulalie","full_name":"nervous-systems/eulalie","owner":{"login":"nervous-systems","id":8793968,"avatar_url":"https://avatars.githubusercontent.com/u/8793968?v=3","gravatar_id":"","url":"https://api.github.com/users/nervous-systems","html_url":"https://github.com/nervous-systems","followers_url":"https://api.github.com/users/nervous-systems/followers","following_url":"https://api.github.com/users/nervous-systems/following{/other_user}","gists_url":"https://api.github.com/users/nervous-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/nervous-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nervous-systems/subscriptions","organizations_url":"https://api.github.com/users/nervous-systems/orgs","repos_url":"https://api.github.com/users/nervous-systems/repos","events_url":"https://api.github.com/users/nervous-systems/events{/privacy}","received_events_url":"https://api.github.com/users/nervous-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nervous-systems/eulalie","description":"Asynchronous AWS client for Clojure & Clojurescript/Node","fork":false,"url":"https://api.github.com/repos/nervous-systems/eulalie","forks_url":"https://api.github.com/repos/nervous-systems/eulalie/forks","keys_url":"https://api.github.com/repos/nervous-systems/eulalie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nervous-systems/eulalie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nervous-systems/eulalie/teams","hooks_url":"https://api.github.com/repos/nervous-systems/eulalie/hooks","issue_events_url":"https://api.github.com/repos/nervous-systems/eulalie/issues/events{/number}","events_url":"https://api.github.com/repos/nervous-systems/eulalie/events","assignees_url":"https://api.github.com/repos/nervous-systems/eulalie/assignees{/user}","branches_url":"https://api.github.com/repos/nervous-systems/eulalie/branches{/branch}","tags_url":"https://api.github.com/repos/nervous-systems/eulalie/tags","blobs_url":"https://api.github.com/repos/nervous-systems/eulalie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nervous-systems/eulalie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nervous-systems/eulalie/git/refs{/sha}","trees_url":"https://api.github.com/repos/nervous-systems/eulalie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nervous-systems/eulalie/statuses/{sha}","languages_url":"https://api.github.com/repos/nervous-systems/eulalie/languages","stargazers_url":"https://api.github.com/repos/nervous-systems/eulalie/stargazers","contributors_url":"https://api.github.com/repos/nervous-systems/eulalie/contributors","subscribers_url":"https://api.github.com/repos/nervous-systems/eulalie/subscribers","subscription_url":"https://api.github.com/repos/nervous-systems/eulalie/subscription","commits_url":"https://api.github.com/repos/nervous-systems/eulalie/commits{/sha}","git_commits_url":"https://api.github.com/repos/nervous-systems/eulalie/git/commits{/sha}","comments_url":"https://api.github.com/repos/nervous-systems/eulalie/comments{/number}","issue_comment_url":"https://api.github.com/repos/nervous-systems/eulalie/issues/comments{/number}","contents_url":"https://api.github.com/repos/nervous-systems/eulalie/contents/{+path}","compare_url":"https://api.github.com/repos/nervous-systems/eulalie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nervous-systems/eulalie/merges","archive_url":"https://api.github.com/repos/nervous-systems/eulalie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nervous-systems/eulalie/downloads","issues_url":"https://api.github.com/repos/nervous-systems/eulalie/issues{/number}","pulls_url":"https://api.github.com/repos/nervous-systems/eulalie/pulls{/number}","milestones_url":"https://api.github.com/repos/nervous-systems/eulalie/milestones{/number}","notifications_url":"https://api.github.com/repos/nervous-systems/eulalie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nervous-systems/eulalie/labels{/name}","releases_url":"https://api.github.com/repos/nervous-systems/eulalie/releases{/id}","deployments_url":"https://api.github.com/repos/nervous-systems/eulalie/deployments","created_at":"2014-11-16T19:52:57Z","updated_at":"2016-07-15T17:02:30Z","pushed_at":"2016-07-28T10:07:40Z","git_url":"git://github.com/nervous-systems/eulalie.git","ssh_url":"git@github.com:nervous-systems/eulalie.git","clone_url":"https://github.com/nervous-systems/eulalie.git","svn_url":"https://github.com/nervous-systems/eulalie","homepage":"","size":284,"stargazers_count":49,"watchers_count":49,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":10,"forks":4,"open_issues":10,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nervous-systems/eulalie/pulls/35"},"html":{"href":"https://github.com/nervous-systems/eulalie/pull/35"},"issue":{"href":"https://api.github.com/repos/nervous-systems/eulalie/issues/35"},"comments":{"href":"https://api.github.com/repos/nervous-systems/eulalie/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/nervous-systems/eulalie/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/nervous-systems/eulalie/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nervous-systems/eulalie/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/nervous-systems/eulalie/statuses/b5230b353512d1d6f64f430ea19ecf5c88a4d6fe"}}}}
{"actor":{"display_login":"lfn3"}}