{"action":"created","comment":{"url":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/comments/178775579","pull_request_review_id":108888573,"id":178775579,"diff_hunk":"@@ -162,6 +165,22 @@ TEST(config, consistent_toml_nonempty) {\n   EXPECT_EQ(conf_str1, conf_str2);\n }\n \n+TEST(config, config_dirs_one_dir) {\n+  TemporaryDirectory temp_dir;\n+  Config config;\n+  config.config_dirs = {\"tests/test_data/config_dirs/one_dir\"};\n+  config.updateFromDirs();\n+  EXPECT_EQ(config.storage.path, \"/z_path\");\n+}\n+\n+TEST(config, config_dirs_two_dirs) {\n+  TemporaryDirectory temp_dir;\n+  Config config;\n+  config.config_dirs = {\"tests/test_data/config_dirs/one_dir\", \"tests/test_data/config_dirs/second_one_dir\"};\n+  config.updateFromDirs();\n+  EXPECT_EQ(config.storage.path, \"/latest_path\");","path":"tests/config_test.cc","position":33,"original_position":33,"commit_id":"95db8c3f4ebabda8dbf5833767b4b490428d90db","original_commit_id":"95db8c3f4ebabda8dbf5833767b4b490428d90db","user":{"login":"patrickvacek","id":5060433,"avatar_url":"https://avatars2.githubusercontent.com/u/5060433?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickvacek","html_url":"https://github.com/patrickvacek","followers_url":"https://api.github.com/users/patrickvacek/followers","following_url":"https://api.github.com/users/patrickvacek/following{/other_user}","gists_url":"https://api.github.com/users/patrickvacek/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickvacek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickvacek/subscriptions","organizations_url":"https://api.github.com/users/patrickvacek/orgs","repos_url":"https://api.github.com/users/patrickvacek/repos","events_url":"https://api.github.com/users/patrickvacek/events{/privacy}","received_events_url":"https://api.github.com/users/patrickvacek/received_events","type":"User","site_admin":false},"body":"+1 for clever tests!","created_at":"2018-04-03T10:15:04Z","updated_at":"2018-04-03T10:15:04Z","html_url":"https://github.com/advancedtelematic/aktualizr/pull/678#discussion_r178775579","pull_request_url":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/678","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/comments/178775579"},"html":{"href":"https://github.com/advancedtelematic/aktualizr/pull/678#discussion_r178775579"},"pull_request":{"href":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/678"}}},"pull_request":{"url":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/678","id":178861208,"html_url":"https://github.com/advancedtelematic/aktualizr/pull/678","diff_url":"https://github.com/advancedtelematic/aktualizr/pull/678.diff","patch_url":"https://github.com/advancedtelematic/aktualizr/pull/678.patch","issue_url":"https://api.github.com/repos/advancedtelematic/aktualizr/issues/678","number":678,"state":"open","locked":false,"title":"Use config dirs","user":{"login":"patriotyk","id":1070523,"avatar_url":"https://avatars2.githubusercontent.com/u/1070523?v=4","gravatar_id":"","url":"https://api.github.com/users/patriotyk","html_url":"https://github.com/patriotyk","followers_url":"https://api.github.com/users/patriotyk/followers","following_url":"https://api.github.com/users/patriotyk/following{/other_user}","gists_url":"https://api.github.com/users/patriotyk/gists{/gist_id}","starred_url":"https://api.github.com/users/patriotyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriotyk/subscriptions","organizations_url":"https://api.github.com/users/patriotyk/orgs","repos_url":"https://api.github.com/users/patriotyk/repos","events_url":"https://api.github.com/users/patriotyk/events{/privacy}","received_events_url":"https://api.github.com/users/patriotyk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-02T15:24:10Z","updated_at":"2018-04-03T10:15:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32035152fa30e486b62c0d83e50ebb85a69e97e9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/678/commits","review_comments_url":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/678/comments","review_comment_url":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/advancedtelematic/aktualizr/issues/678/comments","statuses_url":"https://api.github.com/repos/advancedtelematic/aktualizr/statuses/95db8c3f4ebabda8dbf5833767b4b490428d90db","head":{"label":"advancedtelematic:feat/PRO-5124/config_dir","ref":"feat/PRO-5124/config_dir","sha":"95db8c3f4ebabda8dbf5833767b4b490428d90db","user":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars0.githubusercontent.com/u/7944633?v=4","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"repo":{"id":74766371,"name":"aktualizr","full_name":"advancedtelematic/aktualizr","owner":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars0.githubusercontent.com/u/7944633?v=4","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advancedtelematic/aktualizr","description":"C++ SOTA Client ","fork":false,"url":"https://api.github.com/repos/advancedtelematic/aktualizr","forks_url":"https://api.github.com/repos/advancedtelematic/aktualizr/forks","keys_url":"https://api.github.com/repos/advancedtelematic/aktualizr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advancedtelematic/aktualizr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advancedtelematic/aktualizr/teams","hooks_url":"https://api.github.com/repos/advancedtelematic/aktualizr/hooks","issue_events_url":"https://api.github.com/repos/advancedtelematic/aktualizr/issues/events{/number}","events_url":"https://api.github.com/repos/advancedtelematic/aktualizr/events","assignees_url":"https://api.github.com/repos/advancedtelematic/aktualizr/assignees{/user}","branches_url":"https://api.github.com/repos/advancedtelematic/aktualizr/branches{/branch}","tags_url":"https://api.github.com/repos/advancedtelematic/aktualizr/tags","blobs_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/refs{/sha}","trees_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advancedtelematic/aktualizr/statuses/{sha}","languages_url":"https://api.github.com/repos/advancedtelematic/aktualizr/languages","stargazers_url":"https://api.github.com/repos/advancedtelematic/aktualizr/stargazers","contributors_url":"https://api.github.com/repos/advancedtelematic/aktualizr/contributors","subscribers_url":"https://api.github.com/repos/advancedtelematic/aktualizr/subscribers","subscription_url":"https://api.github.com/repos/advancedtelematic/aktualizr/subscription","commits_url":"https://api.github.com/repos/advancedtelematic/aktualizr/commits{/sha}","git_commits_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/commits{/sha}","comments_url":"https://api.github.com/repos/advancedtelematic/aktualizr/comments{/number}","issue_comment_url":"https://api.github.com/repos/advancedtelematic/aktualizr/issues/comments{/number}","contents_url":"https://api.github.com/repos/advancedtelematic/aktualizr/contents/{+path}","compare_url":"https://api.github.com/repos/advancedtelematic/aktualizr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advancedtelematic/aktualizr/merges","archive_url":"https://api.github.com/repos/advancedtelematic/aktualizr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advancedtelematic/aktualizr/downloads","issues_url":"https://api.github.com/repos/advancedtelematic/aktualizr/issues{/number}","pulls_url":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls{/number}","milestones_url":"https://api.github.com/repos/advancedtelematic/aktualizr/milestones{/number}","notifications_url":"https://api.github.com/repos/advancedtelematic/aktualizr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advancedtelematic/aktualizr/labels{/name}","releases_url":"https://api.github.com/repos/advancedtelematic/aktualizr/releases{/id}","deployments_url":"https://api.github.com/repos/advancedtelematic/aktualizr/deployments","created_at":"2016-11-25T14:46:24Z","updated_at":"2018-04-03T10:10:59Z","pushed_at":"2018-04-03T10:11:00Z","git_url":"git://github.com/advancedtelematic/aktualizr.git","ssh_url":"git@github.com:advancedtelematic/aktualizr.git","clone_url":"https://github.com/advancedtelematic/aktualizr.git","svn_url":"https://github.com/advancedtelematic/aktualizr","homepage":"","size":10716,"stargazers_count":21,"watchers_count":21,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":9,"open_issues":16,"watchers":21,"default_branch":"master"}},"base":{"label":"advancedtelematic:master","ref":"master","sha":"83fd72e0ea57492f67b2b9251512816fd001ee72","user":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars0.githubusercontent.com/u/7944633?v=4","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"repo":{"id":74766371,"name":"aktualizr","full_name":"advancedtelematic/aktualizr","owner":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars0.githubusercontent.com/u/7944633?v=4","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advancedtelematic/aktualizr","description":"C++ SOTA Client ","fork":false,"url":"https://api.github.com/repos/advancedtelematic/aktualizr","forks_url":"https://api.github.com/repos/advancedtelematic/aktualizr/forks","keys_url":"https://api.github.com/repos/advancedtelematic/aktualizr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advancedtelematic/aktualizr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advancedtelematic/aktualizr/teams","hooks_url":"https://api.github.com/repos/advancedtelematic/aktualizr/hooks","issue_events_url":"https://api.github.com/repos/advancedtelematic/aktualizr/issues/events{/number}","events_url":"https://api.github.com/repos/advancedtelematic/aktualizr/events","assignees_url":"https://api.github.com/repos/advancedtelematic/aktualizr/assignees{/user}","branches_url":"https://api.github.com/repos/advancedtelematic/aktualizr/branches{/branch}","tags_url":"https://api.github.com/repos/advancedtelematic/aktualizr/tags","blobs_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/refs{/sha}","trees_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advancedtelematic/aktualizr/statuses/{sha}","languages_url":"https://api.github.com/repos/advancedtelematic/aktualizr/languages","stargazers_url":"https://api.github.com/repos/advancedtelematic/aktualizr/stargazers","contributors_url":"https://api.github.com/repos/advancedtelematic/aktualizr/contributors","subscribers_url":"https://api.github.com/repos/advancedtelematic/aktualizr/subscribers","subscription_url":"https://api.github.com/repos/advancedtelematic/aktualizr/subscription","commits_url":"https://api.github.com/repos/advancedtelematic/aktualizr/commits{/sha}","git_commits_url":"https://api.github.com/repos/advancedtelematic/aktualizr/git/commits{/sha}","comments_url":"https://api.github.com/repos/advancedtelematic/aktualizr/comments{/number}","issue_comment_url":"https://api.github.com/repos/advancedtelematic/aktualizr/issues/comments{/number}","contents_url":"https://api.github.com/repos/advancedtelematic/aktualizr/contents/{+path}","compare_url":"https://api.github.com/repos/advancedtelematic/aktualizr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advancedtelematic/aktualizr/merges","archive_url":"https://api.github.com/repos/advancedtelematic/aktualizr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advancedtelematic/aktualizr/downloads","issues_url":"https://api.github.com/repos/advancedtelematic/aktualizr/issues{/number}","pulls_url":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls{/number}","milestones_url":"https://api.github.com/repos/advancedtelematic/aktualizr/milestones{/number}","notifications_url":"https://api.github.com/repos/advancedtelematic/aktualizr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advancedtelematic/aktualizr/labels{/name}","releases_url":"https://api.github.com/repos/advancedtelematic/aktualizr/releases{/id}","deployments_url":"https://api.github.com/repos/advancedtelematic/aktualizr/deployments","created_at":"2016-11-25T14:46:24Z","updated_at":"2018-04-03T10:10:59Z","pushed_at":"2018-04-03T10:11:00Z","git_url":"git://github.com/advancedtelematic/aktualizr.git","ssh_url":"git@github.com:advancedtelematic/aktualizr.git","clone_url":"https://github.com/advancedtelematic/aktualizr.git","svn_url":"https://github.com/advancedtelematic/aktualizr","homepage":"","size":10716,"stargazers_count":21,"watchers_count":21,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":9,"open_issues":16,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/678"},"html":{"href":"https://github.com/advancedtelematic/aktualizr/pull/678"},"issue":{"href":"https://api.github.com/repos/advancedtelematic/aktualizr/issues/678"},"comments":{"href":"https://api.github.com/repos/advancedtelematic/aktualizr/issues/678/comments"},"review_comments":{"href":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/678/comments"},"review_comment":{"href":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/advancedtelematic/aktualizr/pulls/678/commits"},"statuses":{"href":"https://api.github.com/repos/advancedtelematic/aktualizr/statuses/95db8c3f4ebabda8dbf5833767b4b490428d90db"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"patrickvacek"}}