@@ -50,9 +50,9 @@ async fn create_container(
5050 Ok ( container_client)
5151}
5252
53- #[ recorded:: test( live ) ]
53+ #[ recorded:: test]
5454pub async fn item_create_read_replace_delete ( context : TestContext ) -> Result < ( ) , Box < dyn Error > > {
55- let account = TestAccount :: from_env ( context, None ) ?;
55+ let account = TestAccount :: from_env ( context, None ) . await ?;
5656 let cosmos_client = account. connect_with_key ( None ) ?;
5757 let container_client = create_container ( & account, & cosmos_client) . await ?;
5858
@@ -131,13 +131,13 @@ pub async fn item_create_read_replace_delete(context: TestContext) -> Result<(),
131131 Ok ( ( ) )
132132}
133133
134- #[ recorded:: test( live ) ]
134+ #[ recorded:: test]
135135pub async fn item_create_content_response_on_write (
136136 context : TestContext ,
137137) -> Result < ( ) , Box < dyn Error > > {
138138 use azure_data_cosmos:: ItemOptions ;
139139
140- let account = TestAccount :: from_env ( context, None ) ?;
140+ let account = TestAccount :: from_env ( context, None ) . await ?;
141141 let cosmos_client = account. connect_with_key ( None ) ?;
142142 let container_client = create_container ( & account, & cosmos_client) . await ?;
143143
@@ -170,9 +170,9 @@ pub async fn item_create_content_response_on_write(
170170 Ok ( ( ) )
171171}
172172
173- #[ recorded:: test( live ) ]
173+ #[ recorded:: test]
174174pub async fn item_read_system_properties ( context : TestContext ) -> Result < ( ) , Box < dyn Error > > {
175- let account = TestAccount :: from_env ( context, None ) ?;
175+ let account = TestAccount :: from_env ( context, None ) . await ?;
176176 let cosmos_client = account. connect_with_key ( None ) ?;
177177 let container_client = create_container ( & account, & cosmos_client) . await ?;
178178
@@ -208,9 +208,9 @@ pub async fn item_read_system_properties(context: TestContext) -> Result<(), Box
208208 Ok ( ( ) )
209209}
210210
211- #[ recorded:: test( live ) ]
211+ #[ recorded:: test]
212212pub async fn item_upsert_new ( context : TestContext ) -> Result < ( ) , Box < dyn Error > > {
213- let account = TestAccount :: from_env ( context, None ) ?;
213+ let account = TestAccount :: from_env ( context, None ) . await ?;
214214 let cosmos_client = account. connect_with_key ( None ) ?;
215215 let container_client = create_container ( & account, & cosmos_client) . await ?;
216216
@@ -238,9 +238,9 @@ pub async fn item_upsert_new(context: TestContext) -> Result<(), Box<dyn Error>>
238238 Ok ( ( ) )
239239}
240240
241- #[ recorded:: test( live ) ]
241+ #[ recorded:: test]
242242pub async fn item_upsert_existing ( context : TestContext ) -> Result < ( ) , Box < dyn Error > > {
243- let account = TestAccount :: from_env ( context, None ) ?;
243+ let account = TestAccount :: from_env ( context, None ) . await ?;
244244 let cosmos_client = account. connect_with_key ( None ) ?;
245245 let container_client = create_container ( & account, & cosmos_client) . await ?;
246246
@@ -278,9 +278,9 @@ pub async fn item_upsert_existing(context: TestContext) -> Result<(), Box<dyn Er
278278 Ok ( ( ) )
279279}
280280
281- #[ recorded:: test( live ) ]
281+ #[ recorded:: test]
282282pub async fn item_patch ( context : TestContext ) -> Result < ( ) , Box < dyn Error > > {
283- let account = TestAccount :: from_env ( context, None ) ?;
283+ let account = TestAccount :: from_env ( context, None ) . await ?;
284284 let cosmos_client = account. connect_with_key ( None ) ?;
285285 let container_client = create_container ( & account, & cosmos_client) . await ?;
286286
@@ -332,9 +332,9 @@ pub async fn item_patch(context: TestContext) -> Result<(), Box<dyn Error>> {
332332 Ok ( ( ) )
333333}
334334
335- #[ recorded:: test( live ) ]
335+ #[ recorded:: test]
336336pub async fn item_null_partition_key ( context : TestContext ) -> Result < ( ) , Box < dyn Error > > {
337- let account = TestAccount :: from_env ( context, None ) ?;
337+ let account = TestAccount :: from_env ( context, None ) . await ?;
338338 let cosmos_client = account. connect_with_key ( None ) ?;
339339 let container_client = create_container ( & account, & cosmos_client) . await ?;
340340
0 commit comments