{"action":"created","comment":{"url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/comments/103335605","pull_request_review_id":24118810,"id":103335605,"diff_hunk":"@@ -0,0 +1,77 @@\n+---------------------------------------------------------------------------------------------\n+-- Requirement summary:\n+-- [PTU] [GENIVI] SDL must start PTU for navi app right after app successfully registration\n+-- [PolicyTableUpdate] New application has registered and doesn't yet exist in Local PT during PTU in progress\n+--\n+-- Description:\n+-- In case navigation app connects and sucessfully registers on SDL (opens RPC 7 service)\n+-- and PolicyTable has NO \"certificate\" at \"module_config\" section of LocalPolicyTable\n+-- SDL must start PolicyTableUpdate process on sending SDL.OnStatusUpdate(UPDATE_NEEDED) to HMI to get \"certificate\"\n+--\n+-- 1. Used preconditions:\n+-- Navi app doesn't exist in LP, certificate is listed in module_config\n+--\n+-- 2. Performed steps\n+-- Register navi application.\n+--\n+-- Expected result:\n+-- Application is registered successfully.\n+-- SDL should trigger PTU: SDL.OnStatusUpdate(UPDATE_NEEDED)\n+---------------------------------------------------------------------------------------------\n+\n+--[[ General configuration parameters ]]\n+config.deviceMAC = \"12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0\"\n+config.application1.registerAppInterfaceParams.appHMIType = {\"NAVIGATION\"}\n+\n+--[[ Required Shared libraries ]]\n+local commonFunctions = require ('user_modules/shared_testcases/commonFunctions')\n+local commonSteps = require('user_modules/shared_testcases/commonSteps')\n+local commonPreconditions = require('user_modules/shared_testcases/commonPreconditions')\n+local mobile_session = require('mobile_session')\n+local testCasesForPolicyCeritificates = require('user_modules/shared_testcases/testCasesForPolicyCeritificates')\n+\n+--[[ General Precondition before ATF start ]]\n+testCasesForPolicyCeritificates.update_preloaded_pt(nil, true)\n+commonSteps:DeletePolicyTable()\n+commonSteps:DeleteLogsFiles()\n+\n+--[[ General Settings for configuration ]]\n+Test = require('user_modules/connecttest_resumption')\n+require('user_modules/AppTypes')\n+\n+--[[ Preconditions ]]\n+commonFunctions:newTestCasesGroup(\"Preconditions\")\n+\n+function Test:Precondition_connectMobile()\n+  self:connectMobile()\n+end\n+\n+function Test:Precondition_StartSession()\n+  self.mobileSession = mobile_session.MobileSession(self, self.mobileConnection)\n+  self.mobileSession:StartService(7)\n+end\n+\n+--[[ Test ]]\n+commonFunctions:newTestCasesGroup(\"Test\")\n+function Test:TestStep_RAI_PTU_Trigger()\n+  local CorIdRegister = self.mobileSession:SendRPC(\"RegisterAppInterface\", config.application1.registerAppInterfaceParams)\n+\n+  EXPECT_HMINOTIFICATION(\"BasicCommunication.OnAppRegistered\", { application = { appName = config.application1.registerAppInterfaceParams.appName }})\n+  EXPECT_RESPONSE(CorIdRegister, { success = true, resultCode = \"SUCCESS\" })\n+  EXPECT_NOTIFICATION(\"OnHMIStatus\", { systemContext = \"MAIN\", hmiLevel = \"NONE\", audioStreamingState = \"NOT_AUDIBLE\"})\n+\n+  EXPECT_HMINOTIFICATION(\"SDL.OnStatusUpdate\", {status = \"UPDATE_NEEDED\"}, {status = \"UPDATING\"}):Times(2)\n+end\n+\n+--[[ Postconditions ]]\n+commonFunctions:newTestCasesGroup(\"Postconditions\")\n+\n+function Test.Postcondition_Remove_PTU_file()","path":"test_scripts/Polices/Policies_Security/Trigger_PTU_NO_Certificate/003_ATF_N_TC_new_navi_app_certificate_exist.lua","position":69,"original_position":69,"commit_id":"8e9ce56c1675fbae93c82a3f3359fbd626df10ec","original_commit_id":"8e9ce56c1675fbae93c82a3f3359fbd626df10ec","user":{"login":"dboltovskyi","id":22884509,"avatar_url":"https://avatars.githubusercontent.com/u/22884509?v=3","gravatar_id":"","url":"https://api.github.com/users/dboltovskyi","html_url":"https://github.com/dboltovskyi","followers_url":"https://api.github.com/users/dboltovskyi/followers","following_url":"https://api.github.com/users/dboltovskyi/following{/other_user}","gists_url":"https://api.github.com/users/dboltovskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/dboltovskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dboltovskyi/subscriptions","organizations_url":"https://api.github.com/users/dboltovskyi/orgs","repos_url":"https://api.github.com/users/dboltovskyi/repos","events_url":"https://api.github.com/users/dboltovskyi/events{/privacy}","received_events_url":"https://api.github.com/users/dboltovskyi/received_events","type":"User","site_admin":false},"body":"@istoimenova, Please rename test step to something like 'Restore_PreloadedPT'","created_at":"2017-02-27T23:01:29Z","updated_at":"2017-02-27T23:01:33Z","html_url":"https://github.com/smartdevicelink/sdl_atf_test_scripts/pull/1178#discussion_r103335605","pull_request_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/1178","_links":{"self":{"href":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/comments/103335605"},"html":{"href":"https://github.com/smartdevicelink/sdl_atf_test_scripts/pull/1178#discussion_r103335605"},"pull_request":{"href":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/1178"}}},"pull_request":{"url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/1178","id":107785183,"html_url":"https://github.com/smartdevicelink/sdl_atf_test_scripts/pull/1178","diff_url":"https://github.com/smartdevicelink/sdl_atf_test_scripts/pull/1178.diff","patch_url":"https://github.com/smartdevicelink/sdl_atf_test_scripts/pull/1178.patch","issue_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/issues/1178","number":1178,"state":"open","locked":false,"title":"003_ATF_N_TC_new_navi_app_certificate_exist","user":{"login":"istoimenova","id":15873087,"avatar_url":"https://avatars.githubusercontent.com/u/15873087?v=3","gravatar_id":"","url":"https://api.github.com/users/istoimenova","html_url":"https://github.com/istoimenova","followers_url":"https://api.github.com/users/istoimenova/followers","following_url":"https://api.github.com/users/istoimenova/following{/other_user}","gists_url":"https://api.github.com/users/istoimenova/gists{/gist_id}","starred_url":"https://api.github.com/users/istoimenova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istoimenova/subscriptions","organizations_url":"https://api.github.com/users/istoimenova/orgs","repos_url":"https://api.github.com/users/istoimenova/repos","events_url":"https://api.github.com/users/istoimenova/events{/privacy}","received_events_url":"https://api.github.com/users/istoimenova/received_events","type":"User","site_admin":false},"body":"Script is part of TS: https://github.com/smartdevicelink/sdl_atf_test_scripts/pull/1163\r\ncommon functions for CRQ: #1175","created_at":"2017-02-24T08:15:31Z","updated_at":"2017-02-27T23:01:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bdf4c389ea9f4ae697f142e441f8f2b2c6ee062d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/1178/commits","review_comments_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/1178/comments","review_comment_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/issues/1178/comments","statuses_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/statuses/8e9ce56c1675fbae93c82a3f3359fbd626df10ec","head":{"label":"istoimenova:feature/003_new_navi_app_certificate_exist","ref":"feature/003_new_navi_app_certificate_exist","sha":"8e9ce56c1675fbae93c82a3f3359fbd626df10ec","user":{"login":"istoimenova","id":15873087,"avatar_url":"https://avatars.githubusercontent.com/u/15873087?v=3","gravatar_id":"","url":"https://api.github.com/users/istoimenova","html_url":"https://github.com/istoimenova","followers_url":"https://api.github.com/users/istoimenova/followers","following_url":"https://api.github.com/users/istoimenova/following{/other_user}","gists_url":"https://api.github.com/users/istoimenova/gists{/gist_id}","starred_url":"https://api.github.com/users/istoimenova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istoimenova/subscriptions","organizations_url":"https://api.github.com/users/istoimenova/orgs","repos_url":"https://api.github.com/users/istoimenova/repos","events_url":"https://api.github.com/users/istoimenova/events{/privacy}","received_events_url":"https://api.github.com/users/istoimenova/received_events","type":"User","site_admin":false},"repo":{"id":73690690,"name":"sdl_atf_test_scripts-1","full_name":"istoimenova/sdl_atf_test_scripts-1","owner":{"login":"istoimenova","id":15873087,"avatar_url":"https://avatars.githubusercontent.com/u/15873087?v=3","gravatar_id":"","url":"https://api.github.com/users/istoimenova","html_url":"https://github.com/istoimenova","followers_url":"https://api.github.com/users/istoimenova/followers","following_url":"https://api.github.com/users/istoimenova/following{/other_user}","gists_url":"https://api.github.com/users/istoimenova/gists{/gist_id}","starred_url":"https://api.github.com/users/istoimenova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istoimenova/subscriptions","organizations_url":"https://api.github.com/users/istoimenova/orgs","repos_url":"https://api.github.com/users/istoimenova/repos","events_url":"https://api.github.com/users/istoimenova/events{/privacy}","received_events_url":"https://api.github.com/users/istoimenova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/istoimenova/sdl_atf_test_scripts-1","description":"Test scripts for sdl_atf","fork":true,"url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1","forks_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/forks","keys_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/teams","hooks_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/hooks","issue_events_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/issues/events{/number}","events_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/events","assignees_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/assignees{/user}","branches_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/branches{/branch}","tags_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/tags","blobs_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/statuses/{sha}","languages_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/languages","stargazers_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/stargazers","contributors_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/contributors","subscribers_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/subscribers","subscription_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/subscription","commits_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/contents/{+path}","compare_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/merges","archive_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/downloads","issues_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/issues{/number}","pulls_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/pulls{/number}","milestones_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/milestones{/number}","notifications_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/labels{/name}","releases_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/releases{/id}","deployments_url":"https://api.github.com/repos/istoimenova/sdl_atf_test_scripts-1/deployments","created_at":"2016-11-14T09:54:38Z","updated_at":"2016-11-14T09:54:41Z","pushed_at":"2017-02-27T15:41:58Z","git_url":"git://github.com/istoimenova/sdl_atf_test_scripts-1.git","ssh_url":"git@github.com:istoimenova/sdl_atf_test_scripts-1.git","clone_url":"https://github.com/istoimenova/sdl_atf_test_scripts-1.git","svn_url":"https://github.com/istoimenova/sdl_atf_test_scripts-1","homepage":null,"size":23450,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":"smartdevicelink:feature/extended_policy_functionality","ref":"feature/extended_policy_functionality","sha":"c4ebadfc64a4be1d8d298d98697b17fd6dccef0e","user":{"login":"smartdevicelink","id":8671397,"avatar_url":"https://avatars.githubusercontent.com/u/8671397?v=3","gravatar_id":"","url":"https://api.github.com/users/smartdevicelink","html_url":"https://github.com/smartdevicelink","followers_url":"https://api.github.com/users/smartdevicelink/followers","following_url":"https://api.github.com/users/smartdevicelink/following{/other_user}","gists_url":"https://api.github.com/users/smartdevicelink/gists{/gist_id}","starred_url":"https://api.github.com/users/smartdevicelink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartdevicelink/subscriptions","organizations_url":"https://api.github.com/users/smartdevicelink/orgs","repos_url":"https://api.github.com/users/smartdevicelink/repos","events_url":"https://api.github.com/users/smartdevicelink/events{/privacy}","received_events_url":"https://api.github.com/users/smartdevicelink/received_events","type":"Organization","site_admin":false},"repo":{"id":53459525,"name":"sdl_atf_test_scripts","full_name":"smartdevicelink/sdl_atf_test_scripts","owner":{"login":"smartdevicelink","id":8671397,"avatar_url":"https://avatars.githubusercontent.com/u/8671397?v=3","gravatar_id":"","url":"https://api.github.com/users/smartdevicelink","html_url":"https://github.com/smartdevicelink","followers_url":"https://api.github.com/users/smartdevicelink/followers","following_url":"https://api.github.com/users/smartdevicelink/following{/other_user}","gists_url":"https://api.github.com/users/smartdevicelink/gists{/gist_id}","starred_url":"https://api.github.com/users/smartdevicelink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartdevicelink/subscriptions","organizations_url":"https://api.github.com/users/smartdevicelink/orgs","repos_url":"https://api.github.com/users/smartdevicelink/repos","events_url":"https://api.github.com/users/smartdevicelink/events{/privacy}","received_events_url":"https://api.github.com/users/smartdevicelink/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smartdevicelink/sdl_atf_test_scripts","description":"Test scripts for sdl_atf","fork":false,"url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts","forks_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/forks","keys_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/teams","hooks_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/hooks","issue_events_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/issues/events{/number}","events_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/events","assignees_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/assignees{/user}","branches_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/branches{/branch}","tags_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/tags","blobs_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/languages","stargazers_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/stargazers","contributors_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/contributors","subscribers_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/subscribers","subscription_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/subscription","commits_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/contents/{+path}","compare_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/merges","archive_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/downloads","issues_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/issues{/number}","pulls_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/labels{/name}","releases_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/releases{/id}","deployments_url":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/deployments","created_at":"2016-03-09T01:53:02Z","updated_at":"2016-12-20T07:08:41Z","pushed_at":"2017-02-27T15:42:00Z","git_url":"git://github.com/smartdevicelink/sdl_atf_test_scripts.git","ssh_url":"git@github.com:smartdevicelink/sdl_atf_test_scripts.git","clone_url":"https://github.com/smartdevicelink/sdl_atf_test_scripts.git","svn_url":"https://github.com/smartdevicelink/sdl_atf_test_scripts","homepage":null,"size":22745,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":16,"forks":27,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/1178"},"html":{"href":"https://github.com/smartdevicelink/sdl_atf_test_scripts/pull/1178"},"issue":{"href":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/issues/1178"},"comments":{"href":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/issues/1178/comments"},"review_comments":{"href":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/1178/comments"},"review_comment":{"href":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/pulls/1178/commits"},"statuses":{"href":"https://api.github.com/repos/smartdevicelink/sdl_atf_test_scripts/statuses/8e9ce56c1675fbae93c82a3f3359fbd626df10ec"}}}}
{"actor":{"display_login":"dboltovskyi"}}