@@ -67,11 +67,11 @@ def test_http_test_pass():
67
67
register_uri (GET ,
68
68
BASE_STATION_URI ,
69
69
msg .to_binary (),
70
- content_type = "application/vnd.swiftnav.broker.v1+sbp " )
70
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " )
71
71
register_uri (PUT ,
72
72
BASE_STATION_URI ,
73
73
'' ,
74
- content_type = "application/vnd.swiftnav.broker.v1+sbp " )
74
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " )
75
75
with HTTPDriver (device_uid = "Swift22" , url = BASE_STATION_URI ) as driver :
76
76
assert not driver .read_ok
77
77
assert driver .connect_read ()
@@ -102,12 +102,12 @@ def test_http_test_fail():
102
102
register_uri (GET ,
103
103
BASE_STATION_URI ,
104
104
msg .to_binary (),
105
- content_type = "application/vnd.swiftnav.broker.v1+sbp " ,
105
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " ,
106
106
status = 400 )
107
107
register_uri (PUT ,
108
108
BASE_STATION_URI ,
109
109
'' ,
110
- content_type = "application/vnd.swiftnav.broker.v1+sbp " ,
110
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " ,
111
111
status = 400 )
112
112
with HTTPDriver (device_uid = "Swift22" , url = BASE_STATION_URI ) as driver :
113
113
assert not driver .connect_read ()
@@ -129,12 +129,12 @@ def test_http_test_pass_streaming():
129
129
register_uri (GET ,
130
130
BASE_STATION_URI ,
131
131
mock_streaming_msgs ([m .to_binary () for m in msgs ]),
132
- content_type = "application/vnd.swiftnav.broker.v1+sbp " ,
132
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " ,
133
133
streaming = True )
134
134
register_uri (PUT ,
135
135
BASE_STATION_URI ,
136
136
body = '' ,
137
- content_type = "application/vnd.swiftnav.broker.v1+sbp " ,
137
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " ,
138
138
streaming = True )
139
139
with HTTPDriver (device_uid = "Swift22" , url = BASE_STATION_URI ) as driver :
140
140
assert driver .connect_read ()
@@ -153,16 +153,16 @@ def test_http_test_pass_retry():
153
153
msg = MsgPrintDep (text = 'abcd' )
154
154
get_responses = [Response (body = "first response" ,
155
155
status = 500 ,
156
- content_type = "application/vnd.swiftnav.broker.v1+sbp " ),
156
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " ),
157
157
Response (body = 'second and last response' ,
158
158
status = 200 ,
159
- content_type = "application/vnd.swiftnav.broker.v1+sbp " )]
159
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " )]
160
160
post_responses = [Response (body = "" ,
161
161
status = 500 ,
162
- content_type = "application/vnd.swiftnav.broker.v1+sbp " ),
162
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " ),
163
163
Response (body = '' ,
164
164
status = 200 ,
165
- content_type = "application/vnd.swiftnav.broker.v1+sbp " )]
165
+ content_type = "application/vnd.swiftnav.broker.v1+sbp2 " )]
166
166
register_uri (GET , BASE_STATION_URI , get_responses )
167
167
register_uri (PUT , BASE_STATION_URI , post_responses )
168
168
with HTTPDriver (device_uid = "Swift22" , url = BASE_STATION_URI ) as driver :
0 commit comments