Lines Matching full:response

33 	struct mcumgr_image_upload response;  in ZTEST()  local
41 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
43 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
44 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
46 zassert_equal(MGMT_ERR_ETIMEOUT, response.status, "Expected to receive %d response %d\n", in ZTEST()
47 MGMT_ERR_ETIMEOUT, response.status); in ZTEST()
49 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
51 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
53 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
54 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
56 zassert_equal(MGMT_ERR_ETIMEOUT, response.status, "Expected to receive %d response %d", in ZTEST()
57 MGMT_ERR_ETIMEOUT, response.status); in ZTEST()
61 /* Allocate response buf */ in ZTEST()
63 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
64 zassert_equal(MGMT_ERR_EINVAL, rc, "Expected to receive %d response %d", MGMT_ERR_EINVAL, in ZTEST()
66 zassert_equal(MGMT_ERR_EINVAL, response.status, "Expected to receive %d response %d", in ZTEST()
67 MGMT_ERR_EINVAL, response.status); in ZTEST()
69 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d\n", MGMT_ERR_EOK, rc); in ZTEST()
74 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
75 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
76 zassert_equal(MGMT_ERR_EOK, response.status, "Expected to receive %d response %d", in ZTEST()
77 MGMT_ERR_EOK, response.status); in ZTEST()
78 zassert_equal(1024, response.image_upload_offset, in ZTEST()
79 "Expected to receive offset %d response %d", 1024, in ZTEST()
80 response.image_upload_offset); in ZTEST()
82 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
83 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
84 zassert_equal(MGMT_ERR_EOK, response.status, "Expected to receive %d response %d", in ZTEST()
85 MGMT_ERR_EOK, response.status); in ZTEST()
86 zassert_equal(TEST_IMAGE_SIZE, response.image_upload_offset, in ZTEST()
87 "Expected to receive offset %d response %d", TEST_IMAGE_SIZE, in ZTEST()
88 response.image_upload_offset); in ZTEST()
92 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
94 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
95 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
96 zassert_equal(MGMT_ERR_EOK, response.status, "Expected to receive %d response %d", in ZTEST()
97 MGMT_ERR_EOK, response.status); in ZTEST()
98 zassert_equal(1024, response.image_upload_offset, in ZTEST()
99 "Expected to receive offset %d response %d", 1024, in ZTEST()
100 response.image_upload_offset); in ZTEST()
102 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
103 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
104 zassert_equal(MGMT_ERR_EOK, response.status, "Expected to receive %d response %d", in ZTEST()
105 MGMT_ERR_EOK, response.status); in ZTEST()
106 zassert_equal(TEST_IMAGE_SIZE, response.image_upload_offset, in ZTEST()
107 "Expected to receive offset %d response %d", TEST_IMAGE_SIZE, in ZTEST()
108 response.image_upload_offset); in ZTEST()
119 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
125 zassert_equal(MGMT_ERR_EINVAL, rc, "Expected to receive %d response %d", MGMT_ERR_EINVAL, in ZTEST()
130 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
141 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
146 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
147 zassert_equal(1, res_buf.image_list_length, "Expected to receive %d response %d", 1, in ZTEST()
151 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
152 zassert_equal(2, res_buf.image_list_length, "Expected to receive %d response %d", 2, in ZTEST()
167 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
174 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
175 zassert_equal(2, res_buf.image_list_length, "Expected to receive %d response %d", 2, in ZTEST()
177 zassert_equal(false, image_info[1].flags.pending, "Expected to receive %d response %d", in ZTEST()
186 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
187 zassert_equal(2, res_buf.image_list_length, "Expected to receive %d response %d", 2, in ZTEST()
189 zassert_equal(true, image_info[1].flags.pending, "Expected to receive %d response %d", in ZTEST()
195 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
196 zassert_equal(2, res_buf.image_list_length, "Expected to receive %d response %d", 2, in ZTEST()
198 zassert_equal(true, image_info[0].flags.confirmed, "Expected to receive %d response %d", in ZTEST()
212 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
217 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
229 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
234 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()