{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/kubernetes-ipfs/issues/24","repository_url":"https://api.github.com/repos/ipfs/kubernetes-ipfs","labels_url":"https://api.github.com/repos/ipfs/kubernetes-ipfs/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/kubernetes-ipfs/issues/24/comments","events_url":"https://api.github.com/repos/ipfs/kubernetes-ipfs/issues/24/events","html_url":"https://github.com/ipfs/kubernetes-ipfs/pull/24","id":230825960,"number":24,"title":"Feat/parameters","user":{"login":"dgrisham","id":2904811,"avatar_url":"https://avatars3.githubusercontent.com/u/2904811?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrisham","html_url":"https://github.com/dgrisham","followers_url":"https://api.github.com/users/dgrisham/followers","following_url":"https://api.github.com/users/dgrisham/following{/other_user}","gists_url":"https://api.github.com/users/dgrisham/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrisham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrisham/subscriptions","organizations_url":"https://api.github.com/users/dgrisham/orgs","repos_url":"https://api.github.com/users/dgrisham/repos","events_url":"https://api.github.com/users/dgrisham/events{/privacy}","received_events_url":"https://api.github.com/users/dgrisham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-05-23T20:01:03Z","updated_at":"2017-06-01T15:54:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ipfs/kubernetes-ipfs/pulls/24","html_url":"https://github.com/ipfs/kubernetes-ipfs/pull/24","diff_url":"https://github.com/ipfs/kubernetes-ipfs/pull/24.diff","patch_url":"https://github.com/ipfs/kubernetes-ipfs/pull/24.patch"},"body":"Added a feature for inputting parameters to tests, see the commit message for more details. This will make it easier to run tests over various parameters (number of nodes, file size, etc.), and works nicely with the `write_to_file` feature for saving output to files whose names reflect the parameters they were ran with.\r\n\r\n**Commit message**:\r\n\r\nAdded a feature that allows tests to be parameterized over specified variables,\r\nwhose concrete values may be assigned via command line arguments at runtime.\r\nParameters may be specified in tests by `%{P}`, where `P` is the parameter\r\nidentifer (which can be any string without whitespace), or by `%{P, V}`, where\r\n`V` is the default value for `P`.\r\n\r\nExample: running a test with `go run main.go i=1` replaces all occurrences of\r\n`%{i}` *and* `%{i, <default_value>}` with `1`. If the same test is instead run\r\nwithout the `i=1` argument (i.e. `go run main.go`), then the program will find\r\n`i`'s default value by searching the test for a string of the form\r\n`%{i, <default_value>}`. It will then replace all `%{i}` *and* `%{i, <v>}`\r\ninstances with `<default_value>`.\r\n\r\nThe `<default_value>` for a parameter should only be specified once. So, if\r\n`i`'s default value is `0`, then the first time `i` is used should look like\r\n`%{i, 0}`, then all following references to `i` should just use `%{i}`."},"comment":{"url":"https://api.github.com/repos/ipfs/kubernetes-ipfs/issues/comments/305537625","html_url":"https://github.com/ipfs/kubernetes-ipfs/pull/24#issuecomment-305537625","issue_url":"https://api.github.com/repos/ipfs/kubernetes-ipfs/issues/24","id":305537625,"user":{"login":"dgrisham","id":2904811,"avatar_url":"https://avatars3.githubusercontent.com/u/2904811?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrisham","html_url":"https://github.com/dgrisham","followers_url":"https://api.github.com/users/dgrisham/followers","following_url":"https://api.github.com/users/dgrisham/following{/other_user}","gists_url":"https://api.github.com/users/dgrisham/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrisham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrisham/subscriptions","organizations_url":"https://api.github.com/users/dgrisham/orgs","repos_url":"https://api.github.com/users/dgrisham/repos","events_url":"https://api.github.com/users/dgrisham/events{/privacy}","received_events_url":"https://api.github.com/users/dgrisham/received_events","type":"User","site_admin":false},"created_at":"2017-06-01T15:54:35Z","updated_at":"2017-06-01T15:54:35Z","body":"@hsanjuan Oh, haha whoops, thanks :+1:  Just added."}}
{"actor":{"display_login":"dgrisham"}}