Home
last modified time | relevance | path

Searched refs:response (Results 1 – 25 of 72) sorted by relevance

123

/test/framework/harnesses/host_controller/build/
Dbuild_provider_pab_test.py108 response = Response()
109 response.status_code = 200
110 response._content = b'{ "result" : {"1": "this_url"}}'
111 mock_post.return_value = response
134 response = Response()
135 response.status_code = 200
136 response._content = b'not JSON'
137 mock_post.return_value = response
155 response = Response()
156 response.status_code = 200
[all …]
Dbuild_provider_pab.py240 response = requests.post(self.SVC_URL, data=data, headers=headers,
249 responseJSON = response.json()
322 response = requests.get(url, headers=headers,
324 responseJSON = response.json()
485 response = requests.get(get_url, headers=headers,
487 responseJSON = response.json()
506 response = self.GetResponseWithURL(download_url)
512 for block in response.iter_content(self.DEFAULT_CHUNK_SIZE):
689 response = requests.get(url, headers=headers, stream=True,
691 response.raise_for_status()
[all …]
/test/vti/test_serving/gae/webapp/src/endpoint/
Djob_queue_test.py92 response = api.lease(container)
94 self.assertEqual(response.return_code,
96 self.assertEqual(len(response.jobs), 1)
100 getattr(response.jobs[0], key),
104 getattr(response.jobs[0], key), test_values[key])
113 hostname=response.jobs[0].hostname,
114 manifest_branch=response.jobs[0].manifest_branch,
115 build_target=response.jobs[0].build_target,
116 test_name=response.jobs[0].test_name,
117 serial=response.jobs[0].serial,
[all …]
Dbuild_info_test.py50 response = api.set(container)
52 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
75 response = api.set(container)
77 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
90 response = api.set(container)
91 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
115 response = api.set(container)
117 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
131 response = api.set(container)
132 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
/test/framework/harnesses/host_controller/vti_interface/
Dvti_endpoint_client.py87 response = requests.post(url, data=json.dumps(build),
90 if response.status_code != requests.codes.ok:
91 logging.error("UploadBuildInfo error: %s", response)
123 response = requests.post(url, data=json.dumps(payload),
130 if response.status_code != requests.codes.ok:
131 logging.error("UploadDeviceInfo error: %s", response)
153 response = requests.post(
159 if response.status_code != requests.codes.ok:
160 logging.error("UploadScheduleInfo error: %s", response)
193 response = requests.post(url, data=json.dumps({"name": "na"}),
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/api/
DTestAcknowledgmentRestServlet.java55 public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { in doGet() argument
66 response.setContentType("application/json"); in doGet()
67 PrintWriter writer = response.getWriter(); in doGet()
74 public void doPost(HttpServletRequest request, HttpServletResponse response) in doPost() argument
78 response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); in doPost()
94 response.setStatus(HttpServletResponse.SC_BAD_REQUEST); in doPost()
103 response.setContentType("application/json"); in doPost()
104 PrintWriter writer = response.getWriter(); in doPost()
111 response.setStatus(HttpServletResponse.SC_BAD_REQUEST); in doPost()
117 response.setStatus(HttpServletResponse.SC_BAD_REQUEST); in doPost()
[all …]
DUserFavoriteRestServlet.java63 User user, String test, boolean muteNotifications, HttpServletResponse response) in addFavorite() argument
71 response.setStatus(HttpServletResponse.SC_BAD_REQUEST); in addFavorite()
123 User user, Key favoriteKey, boolean muteNotifications, HttpServletResponse response) in updateFavorite() argument
130 response.setStatus(HttpServletResponse.SC_BAD_REQUEST); in updateFavorite()
135 response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); in updateFavorite()
160 public void doPost(HttpServletRequest request, HttpServletResponse response) in doPost() argument
178 returnData = updateFavorite(currentUser, userFavoritesKey, muteNotifications, response); in doPost()
180 returnData = addFavorite(currentUser, testName, muteNotifications, response); in doPost()
184 response.setContentType("application/json"); in doPost()
185 PrintWriter writer = response.getWriter(); in doPost()
[all …]
DCoverageRestServlet.java47 public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { in doGet() argument
63 response.setStatus(HttpServletResponse.SC_OK); in doGet()
64 response.setContentType("application/json"); in doGet()
65 response.setCharacterEncoding("UTF-8"); in doGet()
66 response.getWriter().write(json); in doGet()
76 public void doPost(HttpServletRequest request, HttpServletResponse response) in doPost() argument
98 response.setStatus(HttpServletResponse.SC_OK); in doPost()
99 response.setContentType("application/json"); in doPost()
100 response.setCharacterEncoding("UTF-8"); in doPost()
101 response.getWriter().write(json); in doPost()
DDataRestServlet.java39 public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { in doGet() argument
76 response.setStatus(HttpServletResponse.SC_OK); in doGet()
77 response.setContentType("application/json"); in doGet()
78 response.setCharacterEncoding("UTF-8"); in doGet()
79 response.getWriter().write(json); in doGet()
DTestSuiteResultRestServlet.java57 public void doPost(HttpServletRequest request, HttpServletResponse response) in doPost() argument
67 response.setStatus(HttpServletResponse.SC_BAD_REQUEST); in doPost()
125 response.setStatus(HttpServletResponse.SC_OK); in doPost()
126 response.setContentType("application/json"); in doPost()
127 response.setCharacterEncoding("UTF-8"); in doPost()
128 response.getWriter().write(json); in doPost()
DTestRunRestServlet.java113 public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { in doGet() argument
125 response.setStatus(HttpServletResponse.SC_BAD_REQUEST); in doGet()
127 response.setStatus(HttpServletResponse.SC_OK); in doGet()
128 response.setContentType("application/json"); in doGet()
129 PrintWriter writer = response.getWriter(); in doGet()
DBigtableLegacyJsonServlet.java75 public void doPost(HttpServletRequest request, HttpServletResponse response) in doPost() argument
88 response.setStatus(HttpServletResponse.SC_BAD_REQUEST); in doPost()
109 response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); in doPost()
131 response.setStatus(HttpServletResponse.SC_BAD_REQUEST); in doPost()
134 response.setStatus(HttpServletResponse.SC_OK); in doPost()
/test/vti/dashboard/src/main/java/com/android/vts/servlet/
DShowGcsLogServlet.java144 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument
151 dispatcher.forward(request, response); in doGetHandler()
159 downloadHandler(request, response); in doGetHandler()
165 defaultHandler(request, response); in doGetHandler()
170 private void downloadHandler(HttpServletRequest request, HttpServletResponse response) in downloadHandler() argument
178 response.setContentType("application/octet-stream"); in downloadHandler()
179 response.setContentLength(blobFile.getSize().intValue()); in downloadHandler()
180 response.setHeader( in downloadHandler()
184 response.getOutputStream().write(blobFile.getContent()); in downloadHandler()
190 dispatcher.forward(request, response); in downloadHandler()
[all …]
DShowReleaseServlet.java58 public void doGetHandler(HttpServletRequest request, HttpServletResponse response) in doGetHandler() argument
65 dispatcher = this.getTestPlanDispatcher(request, response); in doGetHandler()
67 dispatcher = this.getTestSuiteDispatcher(request, response); in doGetHandler()
72 response.setStatus(HttpServletResponse.SC_OK); in doGetHandler()
73 dispatcher.forward(request, response); in doGetHandler()
80 HttpServletRequest request, HttpServletResponse response) { in getTestPlanDispatcher() argument
96 HttpServletRequest request, HttpServletResponse response) { in getTestSuiteDispatcher() argument
/test/vti/test_serving/gae/webapp/src/handlers/
Dbase.py36 def initialize(self, request, response): argument
38 webapp2.RequestHandler.initialize(self, request, response)
66 self.response.headers['x-content-type-options'] = 'nosniff'
67 self.response.headers['x-frame-options'] = 'SAMEORIGIN'
68 self.response.headers['x-xss-protection'] = '1; mode=block'
72 self.session_store.save_sessions(self.response)
119 self.response.status_int = status
120 self.response.status_message = httplib.responses[status]
122 self.response.write(self.jinja2.render_template(tpl, **resp_dict))
189 self.response.status_int = status
[all …]
/test/vti/test_serving/gae/frontend/src/app/menu/dashboard/
Ddashboard.component.ts52 (response) => {
53 if (response.builds) {
54 this.lastBuildUpdateTime = response.builds[0].timestamp;
66 (response) => {
67 if (response.schedules) {
68 this.lastScheduleUpdateTime = response.schedules[0].timestamp;
/test/vti/test_serving/gae/frontend/src/app/menu/schedule/
Dschedule.component.ts90 (response) => {
94 if (response.schedules) {
95 length = response.schedules.length;
98 if (response.has_next) {
120 this.dataSource.data = response.schedules;
130 (response) => {
131 if (response.schedules) {
133 response.schedules.forEach(function(schedule) {
/test/vti/test_serving/gae/frontend/src/app/menu/job/
Djob.component.ts119 (response) => {
123 if (response.jobs) {
124 length = response.jobs.length;
127 if (response.has_next) {
149 this.dataSource.data = response.jobs;
172 (response) => {
173 const stats_72hrs = this.buildStatisticsData('72 Hours', response.jobs);
174 …const jobs_24hrs = (response.jobs == null || response.jobs.length === 0) ? undefined : response.jo…
/test/vti/test_serving/gae/frontend/src/app/menu/lab/
Dlab.component.ts75 (response) => {
77 if (response.labs) {
78 this.count = response.labs.length;
79 this.hostDataSource.data = response.labs;
80 this.setLabs(response.labs);
/test/vti/test_serving/gae/frontend/src/app/menu/device/
Ddevice.component.ts87 (response) => {
91 if (response.devices) {
92 length = response.devices.length;
95 if (response.has_next) {
117 this.dataSource.data = response.devices;
/test/vti/test_serving/gae/frontend/src/app/menu/build/
Dbuild.component.ts76 (response) => {
80 if (response.builds) {
81 length = response.builds.length;
84 if (response.has_next) {
106 this.dataSource.data = response.builds;
/test/vti/fuzz_test_serving/
Dmain_test.py23 response = app.get('/')
25 assert response.status_int == 200
26 assert response.body == 'VTS Fuzzing Dashboard'
/test/framework/harnesses/host_controller/tradefed/
Dremote_operation.py59 response = json.loads(response_str)
60 if "error" in response:
61 raise RemoteOperationException(response["error"])
62 return response
/test/vti/dashboard/src/test/java/com/android/vts/api/
DDataRestServletTest.java52 @Mock private HttpServletResponse response; field in DataRestServletTest
111 when(response.getWriter()).thenReturn(pw); in testBranchData()
113 servlet.doGet(request, response); in testBranchData()
132 when(response.getWriter()).thenReturn(pw); in testDeviceData()
134 servlet.doGet(request, response); in testDeviceData()
/test/vti/test_serving/gae/frontend/src/app/menu/
Dmenu_base.ts44 next: (response) => {
45 this.count = response.count;
47 operation(response);

123