Commit 4762e58
Split create_basic_client into two methods (Azure#14673)
* Update azure_testcase.py
* updated test_table(_async) to verify changes to azure_testcase work now, added a positional arg for create_client_from_credential for services that might have required positional args
* removed the positional *args in favor of pushing towards kwargs
* added private _get_real_credential with kwarg for is_async
* added the async fake credential that was copied from schema registry, and removed extra code from schema registry to verify works
* breaking the fake async credential into its own file and importing it when in Python 3
* fixing up comments based on laurent/adams review
* removing the second boolean for is_real, using self.is_live instead which does the same thing
* updating credential to be self.xxx_cred, caught in the tables live tests
* fixed a create_credential in test table async that did not use kwargs correctly
* Update azure_testcase.py
* updated test_table(_async) to verify changes to azure_testcase work now, added a positional arg for create_client_from_credential for services that might have required positional args
* removed the positional *args in favor of pushing towards kwargs
* added private _get_real_credential with kwarg for is_async
* added the async fake credential that was copied from schema registry, and removed extra code from schema registry to verify works
* breaking the fake async credential into its own file and importing it when in Python 3
* fixing up comments based on laurent/adams review
* removing the second boolean for is_real, using self.is_live instead which does the same thing
* updating credential to be self.xxx_cred, caught in the tables live tests
* fixed a create_credential in test table async that did not use kwargs correctly
* changing a word to force check-enforcer to re-evaulate CI
* Clarify async protocol
* adding a logging message to warn about create_basic_client and use get_cred/create from cred
* fixing up the syntax of the logger
Co-authored-by: seankane-msft <seankane@microsoft.com>1 parent b9480a5 commit 4762e58
File tree
6 files changed
+191
-154
lines changed- sdk
- schemaregistry/azure-schemaregistry/tests
- async_tests
- tables/azure-data-tables/tests
- tools/azure-sdk-tools/devtools_testutils
6 files changed
+191
-154
lines changedLines changed: 8 additions & 70 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 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 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
102 | 40 | | |
103 | 41 | | |
104 | 42 | | |
105 | | - | |
| 43 | + | |
106 | 44 | | |
107 | 45 | | |
108 | 46 | | |
| |||
135 | 73 | | |
136 | 74 | | |
137 | 75 | | |
138 | | - | |
| 76 | + | |
139 | 77 | | |
140 | 78 | | |
141 | 79 | | |
| |||
170 | 108 | | |
171 | 109 | | |
172 | 110 | | |
173 | | - | |
| 111 | + | |
174 | 112 | | |
175 | 113 | | |
176 | 114 | | |
| |||
193 | 131 | | |
194 | 132 | | |
195 | 133 | | |
196 | | - | |
| 134 | + | |
197 | 135 | | |
198 | 136 | | |
199 | 137 | | |
| |||
204 | 142 | | |
205 | 143 | | |
206 | 144 | | |
207 | | - | |
| 145 | + | |
208 | 146 | | |
209 | 147 | | |
210 | 148 | | |
| |||
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | | - | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
99 | | - | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
119 | | - | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
128 | | - | |
| 132 | + | |
129 | 133 | | |
130 | 134 | | |
131 | 135 | | |
| |||
0 commit comments