2
2
import uuid
3
3
from typing import Any , Optional
4
4
5
- from proton import Message
6
- from proton ._data import Data
7
- from proton .utils import (
8
- BlockingConnection ,
9
- BlockingReceiver ,
10
- BlockingSender ,
11
- )
12
-
13
5
from .address_helper import (
14
6
binding_path_with_exchange_queue ,
15
7
exchange_address ,
24
16
)
25
17
from .exceptions import ValidationCodeException
26
18
from .options import ReceiverOption , SenderOption
19
+ from .qpid .proton ._message import Message
20
+ from .qpid .proton .utils import (
21
+ BlockingConnection ,
22
+ BlockingReceiver ,
23
+ BlockingSender ,
24
+ )
27
25
28
26
logger = logging .getLogger (__name__ )
29
27
@@ -154,14 +152,13 @@ def delete_exchange(self, exchange_name: str) -> None:
154
152
logger .debug ("delete_exchange operation called" )
155
153
path = exchange_address (exchange_name )
156
154
157
- print (path )
158
-
159
155
self .request (
160
- Data . NULL ,
156
+ None ,
161
157
path ,
162
158
CommonValues .command_delete .value ,
163
159
[
164
160
CommonValues .response_code_200 .value ,
161
+ CommonValues .response_code_204 .value ,
165
162
],
166
163
)
167
164
@@ -175,6 +172,7 @@ def delete_queue(self, queue_name: str) -> None:
175
172
CommonValues .command_delete .value ,
176
173
[
177
174
CommonValues .response_code_200 .value ,
175
+ CommonValues .response_code_204 .value ,
178
176
],
179
177
)
180
178
@@ -226,6 +224,7 @@ def unbind(self, binding_exchange_queue_path: str) -> None:
226
224
CommonValues .command_delete .value ,
227
225
[
228
226
CommonValues .response_code_200 .value ,
227
+ CommonValues .response_code_204 .value ,
229
228
],
230
229
)
231
230
0 commit comments