22import uuid
33from typing import Any , Optional
44
5- from proton import Message
6- from proton ._data import Data
7- from proton .utils import (
8- BlockingConnection ,
9- BlockingReceiver ,
10- BlockingSender ,
11- )
12-
135from .address_helper import (
146 binding_path_with_exchange_queue ,
157 exchange_address ,
2416)
2517from .exceptions import ValidationCodeException
2618from .options import ReceiverOption , SenderOption
19+ from .qpid .proton ._message import Message
20+ from .qpid .proton .utils import (
21+ BlockingConnection ,
22+ BlockingReceiver ,
23+ BlockingSender ,
24+ )
2725
2826logger = logging .getLogger (__name__ )
2927
@@ -154,14 +152,13 @@ def delete_exchange(self, exchange_name: str) -> None:
154152 logger .debug ("delete_exchange operation called" )
155153 path = exchange_address (exchange_name )
156154
157- print (path )
158-
159155 self .request (
160- Data . NULL ,
156+ None ,
161157 path ,
162158 CommonValues .command_delete .value ,
163159 [
164160 CommonValues .response_code_200 .value ,
161+ CommonValues .response_code_204 .value ,
165162 ],
166163 )
167164
@@ -175,6 +172,7 @@ def delete_queue(self, queue_name: str) -> None:
175172 CommonValues .command_delete .value ,
176173 [
177174 CommonValues .response_code_200 .value ,
175+ CommonValues .response_code_204 .value ,
178176 ],
179177 )
180178
@@ -226,6 +224,7 @@ def unbind(self, binding_exchange_queue_path: str) -> None:
226224 CommonValues .command_delete .value ,
227225 [
228226 CommonValues .response_code_200 .value ,
227+ CommonValues .response_code_204 .value ,
229228 ],
230229 )
231230
0 commit comments