Commit 7058612
authored
Adding SIP routing functionality to PhoneNumbers SDK (Azure#22805)
* Initial commit
* Copied shared files
* Added basic functionality to the sip client.
* Copied shared folder to get the utilities. Implemented sample files. Changed naming in client
* Modified function comments and added class comment for _sip_routing_client.
* Fixed kwargs propagation
* Changed sample file to pull parameteres from environment variables.
* Changed get SIP configuration sample to be a class to align with the update samples. Changed naming of the update samples class.
* Implemented basic tests for the SIP client
* Removed unused import
* Fixed comment.
* Renamed variables dut_client to test_client.
* Merge from original repo
* Feature/communication sip configuration dev/basic client functionality (#3)
Adding async client.
* Updated from original (#4)
Updated from main repo.
* Fixing pylint
* Changed value error to be compatible with python 2.
* Reverted changes for pylint.
* Fixed dev requirements and MANIFEST
* Fixing async tests. Fixing comments.
* Removed async mock to be compatible with the builds.
* Fixing test failures for Ubuntu and Mac
* Changed versions for python. Fixed pylint issue in version.
* Modified _version file to prevent path errors.
* Added newline.
* Downgraded six version to match the frozen requirements.
* Fixed async test errors by excluding asynchronous tests for python 2.7.
* Regenerated by autorest
* Updated swagger definition.
* Squashed commit of the following:
commit 3d7c16a5355a6461a4e688e89410a735dfdcfcce
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Mon Jun 7 17:50:06 2021 +0200
Added e2e and recordings of the tests.
commit 3f92f30afc5e932b2834a337401f51231abfb602
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Mon Jun 7 17:39:44 2021 +0200
Renamed communication testcase and async communication testcase.
commit 6f92a5aaf37c94878aedbfa4a505282e17041ff8
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Mon Jun 7 17:25:47 2021 +0200
Fixed sanitized url to have .net instead of .com .
commit 6e1ab5e228452b3bb29d9ec01b13a779cb6103c2
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Mon Jun 7 17:25:04 2021 +0200
Fixed async client to have all the needed asynchronous behaviour
commit a3ce07361fbab9f0fb335cd35379009486382786
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Mon Jun 7 09:23:29 2021 +0200
Split the testcase and request replacer processor into two files.
commit 26026c256bff0cd186f38656e0477f466e7e5d02
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Mon Jun 7 08:18:44 2021 +0200
Modified paths to fake credential tokens to reflect teh changed naming.
commit fdda1dd10f57b1f67a354fc844b8f5346d1ba200
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Mon Jun 7 08:17:29 2021 +0200
Added dev requirement
commit 2967dff8a91067cacdf34fb3047e5a992be1721b
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Mon Jun 7 08:17:10 2021 +0200
Renamed mocks to testcases
commit 16b55c29ba7570d00e4ed1780f60da83e852258d
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Fri Jun 4 11:38:12 2021 +0200
Renamed variable names for sip configuration
commit 63b338e3ea22e6a9c691e7a4f42663d03af5756c
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Fri Jun 4 10:45:37 2021 +0200
Renamed methods of sip routing client
commit f709b26d646df3b9b98506af22185d800c02234a
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Fri Jun 4 10:20:49 2021 +0200
Modified clients to allow for credentials.
commit ea8d1323fcfa069e066d52521a4f08f08dffe871
Author: Jiri Burant <83883278+jiriburant@users.noreply.github.com>
Date: Fri Jun 4 10:14:02 2021 +0200
Initial Readms
* Fixed readme links and formatting. Added sdk_moniker for client
* Refactored authentication files. AAdded response sanitization.
* Fixed linting issues.
* Modified version to beta.
* Regenerated swagger with latest definitions, implemented missing async sample files.
* Fixing lint issues.
* Fixed pylint disable comment.
* Renamed sip routing client to match the conventions and updated tests.
* Removed -Patch from public namespace.
* Addressing comments from api review
* Removed older files in separate package
* Updated version for azure.core to support newly generated code.
* Implemented swagger definition for SIP routing
* Implemented SIP routing logic
* Implemented siprouting changes
* Added new types to public package
* Changed phone numbers test to work with package structure
* prepared recordings for sip routing
* Added internal and public version of SipTrunk to accomodate for fqdn parameter. Changed public client interface to have functions separately for trunks/routes.
* Fixing formatting.
* Changed public interface.
* Recordings of e2e tests.
* Addressing comments from second internal review.
* Minor changes in cleaning up code. Added a few sample calls.
* Added test for token auth
* Implemented inputs from api review
* Fixed linting issues and credential issues.
* Fixed test recordings.
* Removed test credentials.
* Moved siprouting tests to common namespace and removed packaging on tests.
* Changed token authorization test to work in recorded mode.
Fixed dependencies in setup.py file
* Restored setup.py file to avoid package clashes.
* Regenerated code with lower version of autorest to pass build validation.
* Renamed replace_trunks and replace_routes to set_trunks, set_routes
* Renamed recordings of tests.
* Added more tests for managed identity. Updated README and Changelog.
* Updated version.
* Addressing comments from review.
* Removing forgotten credential.
* Addressing comments from review1 parent 570cfb1 commit 7058612
File tree
76 files changed
+9632
-15
lines changed- sdk/communication/azure-communication-phonenumbers
- azure/communication/phonenumbers
- siprouting
- _generated
- aio
- operations
- models
- operations
- aio
- samples/siprouting
- swagger
- test
- recordings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
76 files changed
+9632
-15
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
Lines changed: 104 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
24 | 34 | | |
25 | | - | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| |||
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| 43 | + | |
34 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
35 | 54 | | |
36 | | - | |
37 | | - | |
| 55 | + | |
| 56 | + | |
38 | 57 | | |
39 | 58 | | |
40 | 59 | | |
| |||
45 | 64 | | |
46 | 65 | | |
47 | 66 | | |
48 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
49 | 79 | | |
50 | 80 | | |
51 | 81 | | |
52 | | - | |
| 82 | + | |
53 | 83 | | |
54 | 84 | | |
55 | 85 | | |
56 | 86 | | |
57 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
58 | 95 | | |
59 | 96 | | |
60 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
61 | 100 | | |
62 | 101 | | |
63 | 102 | | |
| |||
67 | 106 | | |
68 | 107 | | |
69 | 108 | | |
70 | | - | |
| 109 | + | |
71 | 110 | | |
72 | 111 | | |
73 | 112 | | |
| |||
77 | 116 | | |
78 | 117 | | |
79 | 118 | | |
80 | | - | |
| 119 | + | |
81 | 120 | | |
82 | 121 | | |
83 | 122 | | |
84 | | - | |
| 123 | + | |
85 | 124 | | |
86 | 125 | | |
87 | 126 | | |
| |||
103 | 142 | | |
104 | 143 | | |
105 | 144 | | |
106 | | - | |
| 145 | + | |
107 | 146 | | |
108 | 147 | | |
109 | 148 | | |
| |||
114 | 153 | | |
115 | 154 | | |
116 | 155 | | |
117 | | - | |
| 156 | + | |
118 | 157 | | |
119 | 158 | | |
120 | 159 | | |
| |||
125 | 164 | | |
126 | 165 | | |
127 | 166 | | |
128 | | - | |
| 167 | + | |
129 | 168 | | |
130 | 169 | | |
131 | 170 | | |
| |||
143 | 182 | | |
144 | 183 | | |
145 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
146 | 237 | | |
147 | 238 | | |
148 | 239 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments