or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/azure-servicebus@7.14.x
tile.json

tessl/pypi-azure-servicebus

tessl install tessl/pypi-azure-servicebus@7.14.0

Microsoft Azure Service Bus Client Library for Python providing comprehensive messaging capabilities for enterprise applications.

Agent Success

Agent success rate when using this tile

92%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.01x

Baseline

Agent success rate without this tile

91%

task.mdevals/scenario-7/

Corporate Network Message Client

Overview

Build a message client application that connects to Azure Service Bus through a corporate HTTP proxy server. The application should support both authenticated and non-authenticated proxy configurations.

Requirements

Your task is to implement a message client that:

  1. Proxy Configuration Support: Accept proxy configuration details (host, port, username, password) and use them to connect to Azure Service Bus
  2. WebSocket Transport: Use WebSocket-based transport (typically required for proxy scenarios)
  3. Message Operations: Successfully send messages to a queue through the configured proxy

Input

Your application should accept the following configuration:

  • Service Bus connection string or namespace details
  • Queue name
  • Proxy host and port
  • Optional proxy username and password (for authenticated proxies)
  • Messages to send (list of strings)

Output

The application should:

  • Configure the Service Bus client with the provided proxy settings
  • Send all provided messages to the specified queue
  • Return success/failure status for the operation

Dependencies { .dependencies }

azure-servicebus { .dependency }

Provides messaging capabilities for Azure Service Bus including proxy support for corporate network environments.

Test Cases

Test Case 1: Basic Proxy Configuration @test

Input:

  • Proxy host: "proxy.company.com"
  • Proxy port: 8080
  • Queue name: "test-queue"
  • Messages: ["Message 1", "Message 2"]

Expected Behavior: The client should configure proxy settings and successfully connect to Service Bus through the proxy, sending both messages to the queue.

Test Case 2: Authenticated Proxy @test

Input:

  • Proxy host: "secure-proxy.company.com"
  • Proxy port: 3128
  • Proxy username: "proxyuser"
  • Proxy password: "proxypass"
  • Queue name: "secure-queue"
  • Messages: ["Secure message"]

Expected Behavior: The client should configure authenticated proxy settings and successfully send the message through the authenticated proxy connection.

Implementation Notes

  • Your implementation should be in a file named proxy_client.py
  • Include a test file named test_proxy_client.py with tests that verify proxy configuration
  • Handle connection errors gracefully
  • The solution should work with both authenticated and non-authenticated proxy servers

Evaluation

Your solution will be evaluated on:

  • Correct proxy configuration setup
  • Proper use of WebSocket transport
  • Successful message transmission through proxy
  • Clean code structure and error handling