{"action":"created","comment":{"url":"https://api.github.com/repos/docker-library/official-images/pulls/comments/26429118","id":26429118,"diff_hunk":"@@ -0,0 +1,147 @@\n+# Testing, Testing\n+\n+## Running Tests\n+\n+```console\n+$ ./run.sh\n+\n+usage: run.sh [-t test ...] [imageTag ...]\n+   ie: run.sh debian:wheezy\n+       run.sh -t utc python:3-onbuild\n+       run.sh -t utc python:3-onbuild -t py-onbuild\n+\n+This script processes the specified Docker images to test their running\n+environments.\n+$ ./run.sh debian:wheezy\n+testing debian:wheezy\n+\t'utc' [1/2]...passed\n+\t'cve-2014--shellshock' [2/2]...passed\n+$ ./run.sh -t python-hy debian:wheezy\n+testing debian:wheezy\n+$ ./run.sh -t utc python:3 python:2\n+testing python:3\n+\t'utc' [1/1]...passed\n+testing python:2\n+\t'utc' [1/1]...passed\n+$ ./run.sh -t utc -t python-hy python:3 python:2\n+testing python:3\n+\t'utc' [1/2]...passed\n+\t'python-hy' [2/2]...passed\n+testing python:2\n+\t'utc' [1/2]...passed\n+\t'python-hy' [2/2]...passed\n+```\n+\n+## Writing Tests\n+\n+Each test lives in a separate directory inside `tests/`, and `config.sh` determines which images each test applies to.\n+\n+### `config.sh`\n+\n+When testing an image, the list of tests to apply are calculated by doing `globalTests + imageTests[testAlias[image]] + imageTests[image]`. Any tests for which `globalExcludeTests[image_test]` or `globalExcludeTests[image:variant_test]` is set are removed. If `-t` is specified one or more times, any tests not specified explicitly via `-t` are also removed.","path":"test/README.md","position":41,"original_position":41,"commit_id":"17b6324441251dfb94b7e51ea2b4502552cde259","original_commit_id":"17b6324441251dfb94b7e51ea2b4502552cde259","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"body":"Typo here fixed.","created_at":"2015-03-13T22:56:53Z","updated_at":"2015-03-13T22:56:53Z","html_url":"https://github.com/docker-library/official-images/pull/553#discussion_r26429118","pull_request_url":"https://api.github.com/repos/docker-library/official-images/pulls/553","_links":{"self":{"href":"https://api.github.com/repos/docker-library/official-images/pulls/comments/26429118"},"html":{"href":"https://github.com/docker-library/official-images/pull/553#discussion_r26429118"},"pull_request":{"href":"https://api.github.com/repos/docker-library/official-images/pulls/553"}}},"pull_request":{"url":"https://api.github.com/repos/docker-library/official-images/pulls/553","id":31167862,"html_url":"https://github.com/docker-library/official-images/pull/553","diff_url":"https://github.com/docker-library/official-images/pull/553.diff","patch_url":"https://github.com/docker-library/official-images/pull/553.patch","issue_url":"https://api.github.com/repos/docker-library/official-images/issues/553","number":553,"state":"open","locked":false,"title":"Add some initial testing documentation","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-13T22:03:10Z","updated_at":"2015-03-13T22:56:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52fe5b596091f31d9d371ec366ae5e69c4c2102b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker-library/official-images/pulls/553/commits","review_comments_url":"https://api.github.com/repos/docker-library/official-images/pulls/553/comments","review_comment_url":"https://api.github.com/repos/docker-library/official-images/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker-library/official-images/issues/553/comments","statuses_url":"https://api.github.com/repos/docker-library/official-images/statuses/17b6324441251dfb94b7e51ea2b4502552cde259","head":{"label":"infosiftr:test-docs","ref":"test-docs","sha":"17b6324441251dfb94b7e51ea2b4502552cde259","user":{"login":"infosiftr","id":894614,"avatar_url":"https://avatars.githubusercontent.com/u/894614?v=3","gravatar_id":"","url":"https://api.github.com/users/infosiftr","html_url":"https://github.com/infosiftr","followers_url":"https://api.github.com/users/infosiftr/followers","following_url":"https://api.github.com/users/infosiftr/following{/other_user}","gists_url":"https://api.github.com/users/infosiftr/gists{/gist_id}","starred_url":"https://api.github.com/users/infosiftr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosiftr/subscriptions","organizations_url":"https://api.github.com/users/infosiftr/orgs","repos_url":"https://api.github.com/users/infosiftr/repos","events_url":"https://api.github.com/users/infosiftr/events{/privacy}","received_events_url":"https://api.github.com/users/infosiftr/received_events","type":"Organization","site_admin":false},"repo":{"id":20345659,"name":"stackbrew","full_name":"infosiftr/stackbrew","owner":{"login":"infosiftr","id":894614,"avatar_url":"https://avatars.githubusercontent.com/u/894614?v=3","gravatar_id":"","url":"https://api.github.com/users/infosiftr","html_url":"https://github.com/infosiftr","followers_url":"https://api.github.com/users/infosiftr/followers","following_url":"https://api.github.com/users/infosiftr/following{/other_user}","gists_url":"https://api.github.com/users/infosiftr/gists{/gist_id}","starred_url":"https://api.github.com/users/infosiftr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosiftr/subscriptions","organizations_url":"https://api.github.com/users/infosiftr/orgs","repos_url":"https://api.github.com/users/infosiftr/repos","events_url":"https://api.github.com/users/infosiftr/events{/privacy}","received_events_url":"https://api.github.com/users/infosiftr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infosiftr/stackbrew","description":"docker-brew is a command-line tool used to build the docker standard library.","fork":true,"url":"https://api.github.com/repos/infosiftr/stackbrew","forks_url":"https://api.github.com/repos/infosiftr/stackbrew/forks","keys_url":"https://api.github.com/repos/infosiftr/stackbrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infosiftr/stackbrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infosiftr/stackbrew/teams","hooks_url":"https://api.github.com/repos/infosiftr/stackbrew/hooks","issue_events_url":"https://api.github.com/repos/infosiftr/stackbrew/issues/events{/number}","events_url":"https://api.github.com/repos/infosiftr/stackbrew/events","assignees_url":"https://api.github.com/repos/infosiftr/stackbrew/assignees{/user}","branches_url":"https://api.github.com/repos/infosiftr/stackbrew/branches{/branch}","tags_url":"https://api.github.com/repos/infosiftr/stackbrew/tags","blobs_url":"https://api.github.com/repos/infosiftr/stackbrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infosiftr/stackbrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infosiftr/stackbrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/infosiftr/stackbrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infosiftr/stackbrew/statuses/{sha}","languages_url":"https://api.github.com/repos/infosiftr/stackbrew/languages","stargazers_url":"https://api.github.com/repos/infosiftr/stackbrew/stargazers","contributors_url":"https://api.github.com/repos/infosiftr/stackbrew/contributors","subscribers_url":"https://api.github.com/repos/infosiftr/stackbrew/subscribers","subscription_url":"https://api.github.com/repos/infosiftr/stackbrew/subscription","commits_url":"https://api.github.com/repos/infosiftr/stackbrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/infosiftr/stackbrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/infosiftr/stackbrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/infosiftr/stackbrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/infosiftr/stackbrew/contents/{+path}","compare_url":"https://api.github.com/repos/infosiftr/stackbrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infosiftr/stackbrew/merges","archive_url":"https://api.github.com/repos/infosiftr/stackbrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infosiftr/stackbrew/downloads","issues_url":"https://api.github.com/repos/infosiftr/stackbrew/issues{/number}","pulls_url":"https://api.github.com/repos/infosiftr/stackbrew/pulls{/number}","milestones_url":"https://api.github.com/repos/infosiftr/stackbrew/milestones{/number}","notifications_url":"https://api.github.com/repos/infosiftr/stackbrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infosiftr/stackbrew/labels{/name}","releases_url":"https://api.github.com/repos/infosiftr/stackbrew/releases{/id}","created_at":"2014-05-30T23:54:30Z","updated_at":"2015-03-13T22:26:36Z","pushed_at":"2015-03-13T22:56:13Z","git_url":"git://github.com/infosiftr/stackbrew.git","ssh_url":"git@github.com:infosiftr/stackbrew.git","clone_url":"https://github.com/infosiftr/stackbrew.git","svn_url":"https://github.com/infosiftr/stackbrew","homepage":"http://docker.io","size":2405,"stargazers_count":1,"watchers_count":1,"language":"Python","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":1,"default_branch":"master"}},"base":{"label":"docker-library:master","ref":"master","sha":"9a5273ed228df74ea07d09eb803710eb07dc50f3","user":{"login":"docker-library","id":7739233,"avatar_url":"https://avatars.githubusercontent.com/u/7739233?v=3","gravatar_id":"","url":"https://api.github.com/users/docker-library","html_url":"https://github.com/docker-library","followers_url":"https://api.github.com/users/docker-library/followers","following_url":"https://api.github.com/users/docker-library/following{/other_user}","gists_url":"https://api.github.com/users/docker-library/gists{/gist_id}","starred_url":"https://api.github.com/users/docker-library/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker-library/subscriptions","organizations_url":"https://api.github.com/users/docker-library/orgs","repos_url":"https://api.github.com/users/docker-library/repos","events_url":"https://api.github.com/users/docker-library/events{/privacy}","received_events_url":"https://api.github.com/users/docker-library/received_events","type":"Organization","site_admin":false},"repo":{"id":13655949,"name":"official-images","full_name":"docker-library/official-images","owner":{"login":"docker-library","id":7739233,"avatar_url":"https://avatars.githubusercontent.com/u/7739233?v=3","gravatar_id":"","url":"https://api.github.com/users/docker-library","html_url":"https://github.com/docker-library","followers_url":"https://api.github.com/users/docker-library/followers","following_url":"https://api.github.com/users/docker-library/following{/other_user}","gists_url":"https://api.github.com/users/docker-library/gists{/gist_id}","starred_url":"https://api.github.com/users/docker-library/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker-library/subscriptions","organizations_url":"https://api.github.com/users/docker-library/orgs","repos_url":"https://api.github.com/users/docker-library/repos","events_url":"https://api.github.com/users/docker-library/events{/privacy}","received_events_url":"https://api.github.com/users/docker-library/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker-library/official-images","description":"","fork":false,"url":"https://api.github.com/repos/docker-library/official-images","forks_url":"https://api.github.com/repos/docker-library/official-images/forks","keys_url":"https://api.github.com/repos/docker-library/official-images/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker-library/official-images/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker-library/official-images/teams","hooks_url":"https://api.github.com/repos/docker-library/official-images/hooks","issue_events_url":"https://api.github.com/repos/docker-library/official-images/issues/events{/number}","events_url":"https://api.github.com/repos/docker-library/official-images/events","assignees_url":"https://api.github.com/repos/docker-library/official-images/assignees{/user}","branches_url":"https://api.github.com/repos/docker-library/official-images/branches{/branch}","tags_url":"https://api.github.com/repos/docker-library/official-images/tags","blobs_url":"https://api.github.com/repos/docker-library/official-images/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker-library/official-images/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker-library/official-images/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker-library/official-images/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker-library/official-images/statuses/{sha}","languages_url":"https://api.github.com/repos/docker-library/official-images/languages","stargazers_url":"https://api.github.com/repos/docker-library/official-images/stargazers","contributors_url":"https://api.github.com/repos/docker-library/official-images/contributors","subscribers_url":"https://api.github.com/repos/docker-library/official-images/subscribers","subscription_url":"https://api.github.com/repos/docker-library/official-images/subscription","commits_url":"https://api.github.com/repos/docker-library/official-images/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker-library/official-images/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker-library/official-images/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker-library/official-images/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker-library/official-images/contents/{+path}","compare_url":"https://api.github.com/repos/docker-library/official-images/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker-library/official-images/merges","archive_url":"https://api.github.com/repos/docker-library/official-images/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker-library/official-images/downloads","issues_url":"https://api.github.com/repos/docker-library/official-images/issues{/number}","pulls_url":"https://api.github.com/repos/docker-library/official-images/pulls{/number}","milestones_url":"https://api.github.com/repos/docker-library/official-images/milestones{/number}","notifications_url":"https://api.github.com/repos/docker-library/official-images/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker-library/official-images/labels{/name}","releases_url":"https://api.github.com/repos/docker-library/official-images/releases{/id}","created_at":"2013-10-17T17:27:12Z","updated_at":"2015-03-13T22:39:12Z","pushed_at":"2015-03-13T22:39:12Z","git_url":"git://github.com/docker-library/official-images.git","ssh_url":"git@github.com:docker-library/official-images.git","clone_url":"https://github.com/docker-library/official-images.git","svn_url":"https://github.com/docker-library/official-images","homepage":"https://registry.hub.docker.com/repos/stackbrew/?s=stars","size":4970,"stargazers_count":473,"watchers_count":473,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":142,"mirror_url":null,"open_issues_count":20,"forks":142,"open_issues":20,"watchers":473,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker-library/official-images/pulls/553"},"html":{"href":"https://github.com/docker-library/official-images/pull/553"},"issue":{"href":"https://api.github.com/repos/docker-library/official-images/issues/553"},"comments":{"href":"https://api.github.com/repos/docker-library/official-images/issues/553/comments"},"review_comments":{"href":"https://api.github.com/repos/docker-library/official-images/pulls/553/comments"},"review_comment":{"href":"https://api.github.com/repos/docker-library/official-images/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker-library/official-images/pulls/553/commits"},"statuses":{"href":"https://api.github.com/repos/docker-library/official-images/statuses/17b6324441251dfb94b7e51ea2b4502552cde259"}}}}