(self)
| 299 | self.service.delete_queue(queue_name) |
| 300 | |
| 301 | def service_properties(self): |
| 302 | # Basic |
| 303 | self.service.set_queue_service_properties(logging=Logging(delete=True), |
| 304 | hour_metrics=Metrics(enabled=True, include_apis=True), |
| 305 | minute_metrics=Metrics(enabled=True, include_apis=False), |
| 306 | cors=[CorsRule(allowed_origins=['*'], allowed_methods=['GET'])]) |
| 307 | |
| 308 | # Wait 30 seconds for settings to propagate |
| 309 | time.sleep(30) |
| 310 | |
| 311 | props = self.service.get_queue_service_properties() # props = ServiceProperties() w/ all properties specified above |
| 312 | |
| 313 | # Omitted properties will not overwrite what's already on the self.service |
| 314 | # Empty properties will clear |
| 315 | self.service.set_queue_service_properties(cors=[]) |
| 316 | |
| 317 | # Wait 30 seconds for settings to propagate |
| 318 | time.sleep(30) |
| 319 | |
| 320 | props = self.service.get_queue_service_properties() # props = ServiceProperties() w/ CORS rules cleared |
nothing calls this directly
no test coverage detected