Skip to content

Commit

Permalink
Add ServerCall async & sync live test.
Browse files Browse the repository at this point in the history
  • Loading branch information
zihzhan-msft committed Sep 20, 2021
1 parent 475f8f2 commit e8cf9b2
Show file tree
Hide file tree
Showing 26 changed files with 1,792 additions and 538 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def hang_up(
@distributed_trace()
def cancel_all_media_operations(
self,
operation_context, # type: Optional[str]
operation_context=None, # type: Optional[str]
**kwargs # type: Any
): # type: (...) -> CancelAllMediaOperationsResult

Expand Down Expand Up @@ -88,8 +88,8 @@ def play_audio(
def add_participant(
self,
participant, # type: CommunicationIdentifier
alternate_caller_id, # type: Optional[str]
operation_context, # type: Optional[str]
alternate_caller_id=None, # type: Optional[str]
operation_context=None, # type: Optional[str]
**kwargs # type: Any
): # type: (...) -> AddParticipantResult

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def add_participant(
self,
participant, # type: CommunicationIdentifier
callback_uri, # type: str
alternate_caller_id, # type: Optional[str]
operation_context, # type: Optional[str]
alternate_caller_id=None, # type: Optional[str]
operation_context=None, # type: Optional[str]
**kwargs # type: Any
): # type: (...) -> AddParticipantResult

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def hang_up(
@distributed_trace_async()
async def cancel_all_media_operations(
self,
operation_context: Optional[str],
operation_context: Optional[str] = None,
**kwargs: Any
) -> CancelAllMediaOperationsResult:

Expand Down Expand Up @@ -95,8 +95,8 @@ async def play_audio(
async def add_participant(
self,
participant: CommunicationIdentifier,
alternate_caller_id: Optional[str],
operation_context: Optional[str],
alternate_caller_id: Optional[str] = None,
operation_context: Optional[str] = None,
**kwargs: Any
) -> AddParticipantResult:

Expand Down Expand Up @@ -161,7 +161,7 @@ async def cancel_participant_media_operation(
async def transfer_call(
self,
target_participant: CommunicationIdentifier,
user_to_user_information: Optional[str],
user_to_user_information: Optional[str] = None,
**kwargs: Any
)-> None:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ async def add_participant(
self,
participant: 'CommunicationIdentifier',
callback_uri: str,
alternate_caller_id: Optional[str],
operation_context: Optional[str],
alternate_caller_id: Optional[str] = None,
operation_context: Optional[str] = None,
**kwargs: Any
) -> AddParticipantResult:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ interactions:
User-Agent:
- azsdk-python-communication-identity/1.0.1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
x-ms-date:
- Sat, 18 Sep 2021 05:57:29 GMT
- Sun, 19 Sep 2021 21:28:16 GMT
x-ms-return-client-request-id:
- 'true'
method: POST
uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07
response:
body:
string: '{"identity":{"id":"8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-975c-d16f-89df-4448220019f5"}}'
string: '{"identity":{"id":"8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-9fd7-5540-f4f5-343a0d002b3c"}}'
headers:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1,
2021-10-31-preview
content-type:
- application/json; charset=utf-8
date:
- Sat, 18 Sep 2021 05:57:29 GMT
- Sun, 19 Sep 2021 21:28:16 GMT
ms-cv:
- i7wJJ2Njwka4J68kBSmfDA.0
- qvOTZ+mq70+vqksNLQ+D5w.0
request-context:
- appId=
strict-transport-security:
Expand All @@ -42,7 +42,7 @@ interactions:
x-cache:
- CONFIG_NOCACHE
x-processing-time:
- 78ms
- 42ms
status:
code: 201
message: Created
Expand All @@ -62,24 +62,24 @@ interactions:
User-Agent:
- azsdk-python-communication-identity/1.0.1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
x-ms-date:
- Sat, 18 Sep 2021 05:57:30 GMT
- Sun, 19 Sep 2021 21:28:17 GMT
x-ms-return-client-request-id:
- 'true'
method: POST
uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07
response:
body:
string: '{"identity":{"id":"8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-975c-d2fc-c17b-254822001754"}}'
string: '{"identity":{"id":"8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-9fd7-572f-0e04-343a0d0033ce"}}'
headers:
api-supported-versions:
- 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1,
2021-10-31-preview
content-type:
- application/json; charset=utf-8
date:
- Sat, 18 Sep 2021 05:57:29 GMT
- Sun, 19 Sep 2021 21:28:16 GMT
ms-cv:
- fCzWSJ0YLkG8tYyczSxagQ.0
- aInwNGjk3Em4x5zCiLDqRg.0
request-context:
- appId=
strict-transport-security:
Expand All @@ -89,7 +89,7 @@ interactions:
x-cache:
- CONFIG_NOCACHE
x-processing-time:
- 107ms
- 44ms
status:
code: 201
message: Created
Expand All @@ -111,27 +111,27 @@ interactions:
User-Agent:
- azsdk-python-communication-callingserver/1.0.0b1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
method: POST
uri: https://sanitized.communication.azure.com/calling/callConnections?api-version=2021-06-15-preview
uri: https://sanitized.communication.azure.com/calling/callConnections?api-version=2021-09-15-preview
response:
body:
string: '{"callConnectionId": "411f0b00-7e5d-48ee-abe1-8a662378df79"}'
string: '{"callConnectionId": "411f0b00-8e45-4c58-9dfb-b58847606d7f"}'
headers:
content-length:
- '59'
content-type:
- application/json; charset=utf-8
date:
- Sat, 18 Sep 2021 05:57:31 GMT
- Sun, 19 Sep 2021 21:28:19 GMT
x-cache:
- CONFIG_NOCACHE
x-microsoft-skype-chain-id:
- 6e07b9e4-1f74-4086-ab09-9080306ba57b
- 7ae446cf-6dae-4997-9cec-c3d9996d1cee
status:
code: 201
message: Created
- request:
body: '{"participant": {"communicationUser": {"id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-975c-d2fc-c17b-254822001754"}},
"operationContext": "26a71631-9a77-40e3-8e29-707e50382256"}'
body: '{"participant": {"communicationUser": {"id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000c-9f68-6fd6-e57b-254822002248"}},
"operationContext": "03e4b3d5-e50b-4957-97e3-15f3df772a2a"}'
headers:
Accept:
- application/json
Expand All @@ -146,21 +146,21 @@ interactions:
User-Agent:
- azsdk-python-communication-callingserver/1.0.0b1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
method: POST
uri: https://sanitized.communication.azure.com/calling/callConnections/411f0b00-7e5d-48ee-abe1-8a662378df79/participants?api-version=2021-06-15-preview
uri: https://sanitized.communication.azure.com/calling/callConnections/411f0b00-8e45-4c58-9dfb-b58847606d7f/participants?api-version=2021-09-15-preview
response:
body:
string: '{"participantId": "24c20b02-9f07-445d-beea-650e79b14f19"}'
string: '{"participantId": "0dd3ccdf-0754-4d23-b082-5052e5b66ea7"}'
headers:
content-length:
- '56'
content-type:
- application/json; charset=utf-8
date:
- Sat, 18 Sep 2021 05:57:41 GMT
- Sun, 19 Sep 2021 21:28:29 GMT
x-cache:
- CONFIG_NOCACHE
x-microsoft-skype-chain-id:
- c560053c-f7b9-48a1-97cc-abd44a32754d
- e391ce75-1bad-4f66-b337-652e3fc11d31
status:
code: 202
message: Accepted
Expand All @@ -178,19 +178,19 @@ interactions:
User-Agent:
- azsdk-python-communication-callingserver/1.0.0b1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
method: DELETE
uri: https://sanitized.communication.azure.com/calling/callConnections/411f0b00-7e5d-48ee-abe1-8a662378df79/participants/24c20b02-9f07-445d-beea-650e79b14f19?api-version=2021-06-15-preview
uri: https://sanitized.communication.azure.com/calling/callConnections/411f0b00-8e45-4c58-9dfb-b58847606d7f/participants/0dd3ccdf-0754-4d23-b082-5052e5b66ea7?api-version=2021-09-15-preview
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Sat, 18 Sep 2021 05:57:42 GMT
- Sun, 19 Sep 2021 21:28:39 GMT
x-cache:
- CONFIG_NOCACHE
x-microsoft-skype-chain-id:
- 7d686a5e-6d6c-4543-8555-1372863fdfd2
- e164c268-200c-49c6-ae16-0eff535cc95b
status:
code: 202
message: Accepted
Expand All @@ -208,19 +208,19 @@ interactions:
User-Agent:
- azsdk-python-communication-callingserver/1.0.0b1 Python/3.9.7 (Windows-10-10.0.19043-SP0)
method: POST
uri: https://sanitized.communication.azure.com/calling/callConnections/411f0b00-7e5d-48ee-abe1-8a662378df79/:hangup?api-version=2021-06-15-preview
uri: https://sanitized.communication.azure.com/calling/callConnections/411f0b00-8e45-4c58-9dfb-b58847606d7f/:hangup?api-version=2021-09-15-preview
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Sat, 18 Sep 2021 05:57:48 GMT
- Sun, 19 Sep 2021 21:28:49 GMT
x-cache:
- CONFIG_NOCACHE
x-microsoft-skype-chain-id:
- fc14c3b9-58af-4baf-ae5d-39cdc5b1362f
- e80676cc-e297-4d19-95e8-60c1005cee43
status:
code: 202
message: Accepted
Expand Down
Loading

0 comments on commit e8cf9b2

Please sign in to comment.