Skip to content

Commit 0549bec

Browse files
[FarmBeats, Test] Hardcoded endpoint for statically set up resource (#19198)
1 parent 026f587 commit 0549bec

18 files changed

+394
-814
lines changed

sdk/agrifood/azure-agrifood-farming/tests/recordings/test_farm_heirarchy.test_farmer_operations.yaml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ interactions:
1515
Content-Type:
1616
- application/merge-patch+json
1717
User-Agent:
18-
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit)
18+
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0)
1919
method: PATCH
2020
uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview
2121
response:
2222
body:
23-
string: '{"id":"test-farmer-farmer-ops","eTag":"00007b03-0000-0600-0000-60a44b150000","status":"Sample
24-
Status","createdDateTime":"2021-05-18T23:17:41Z","modifiedDateTime":"2021-05-18T23:17:41Z","name":"Test
23+
string: '{"id":"test-farmer-farmer-ops","eTag":"02007c9d-0000-0600-0000-60cfd96a0000","status":"Sample
24+
Status","createdDateTime":"2021-06-21T00:12:26Z","modifiedDateTime":"2021-06-21T00:12:26Z","name":"Test
2525
Farmer","description":"Farmer created during testing.","properties":{"foo":"bar","numeric
2626
one":1,"1":"numeric key"}}'
2727
headers:
@@ -32,19 +32,19 @@ interactions:
3232
connection:
3333
- keep-alive
3434
content-length:
35-
- '314'
35+
- '318'
3636
content-type:
3737
- application/json; charset=utf-8
3838
date:
39-
- Tue, 18 May 2021 23:17:41 GMT
39+
- Mon, 21 Jun 2021 00:12:26 GMT
4040
etag:
41-
- 00007b03-0000-0600-0000-60a44b150000
41+
- 02007c9d-0000-0600-0000-60cfd96a0000
4242
location:
43-
- http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/test-farmer-farmer-ops
44-
server:
45-
- nginx/1.19.1
43+
- http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/test-farmer-farmer-ops
4644
strict-transport-security:
4745
- max-age=15724800; includeSubDomains
46+
x-ms-throttle-information:
47+
- '5'
4848
status:
4949
code: 201
5050
message: Created
@@ -58,13 +58,13 @@ interactions:
5858
Connection:
5959
- keep-alive
6060
User-Agent:
61-
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit)
61+
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0)
6262
method: GET
6363
uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview
6464
response:
6565
body:
66-
string: '{"id":"test-farmer-farmer-ops","eTag":"00007b03-0000-0600-0000-60a44b150000","status":"Sample
67-
Status","createdDateTime":"2021-05-18T23:17:41Z","modifiedDateTime":"2021-05-18T23:17:41Z","name":"Test
66+
string: '{"id":"test-farmer-farmer-ops","eTag":"02007c9d-0000-0600-0000-60cfd96a0000","status":"Sample
67+
Status","createdDateTime":"2021-06-21T00:12:26Z","modifiedDateTime":"2021-06-21T00:12:26Z","name":"Test
6868
Farmer","description":"Farmer created during testing.","properties":{"foo":"bar","numeric
6969
one":1,"1":"numeric key"}}'
7070
headers:
@@ -75,19 +75,19 @@ interactions:
7575
connection:
7676
- keep-alive
7777
content-length:
78-
- '314'
78+
- '318'
7979
content-type:
8080
- application/json; charset=utf-8
8181
date:
82-
- Tue, 18 May 2021 23:17:42 GMT
83-
server:
84-
- nginx/1.19.1
82+
- Mon, 21 Jun 2021 00:12:27 GMT
8583
strict-transport-security:
8684
- max-age=15724800; includeSubDomains
8785
transfer-encoding:
8886
- chunked
8987
vary:
9088
- Accept-Encoding
89+
x-ms-throttle-information:
90+
- '1'
9191
status:
9292
code: 200
9393
message: OK
@@ -107,13 +107,13 @@ interactions:
107107
Content-Type:
108108
- application/merge-patch+json
109109
User-Agent:
110-
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit)
110+
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0)
111111
method: PATCH
112112
uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview
113113
response:
114114
body:
115-
string: '{"id":"test-farmer-farmer-ops","eTag":"00007d03-0000-0600-0000-60a44b170000","status":"Sample
116-
Status","createdDateTime":"2021-05-18T23:17:41Z","modifiedDateTime":"2021-05-18T23:17:43Z","name":"Test
115+
string: '{"id":"test-farmer-farmer-ops","eTag":"02007d9d-0000-0600-0000-60cfd96c0000","status":"Sample
116+
Status","createdDateTime":"2021-06-21T00:12:26Z","modifiedDateTime":"2021-06-21T00:12:28Z","name":"Test
117117
Farmer Updated","description":"Farmer created during testing.","properties":{"foo":"bar","numeric
118118
one":1,"1":"numeric key"}}'
119119
headers:
@@ -124,19 +124,19 @@ interactions:
124124
connection:
125125
- keep-alive
126126
content-length:
127-
- '322'
127+
- '326'
128128
content-type:
129129
- application/json; charset=utf-8
130130
date:
131-
- Tue, 18 May 2021 23:17:43 GMT
132-
server:
133-
- nginx/1.19.1
131+
- Mon, 21 Jun 2021 00:12:28 GMT
134132
strict-transport-security:
135133
- max-age=15724800; includeSubDomains
136134
transfer-encoding:
137135
- chunked
138136
vary:
139137
- Accept-Encoding
138+
x-ms-throttle-information:
139+
- '5'
140140
status:
141141
code: 200
142142
message: OK
@@ -150,13 +150,13 @@ interactions:
150150
Connection:
151151
- keep-alive
152152
User-Agent:
153-
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit)
153+
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0)
154154
method: GET
155155
uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview
156156
response:
157157
body:
158-
string: '{"id":"test-farmer-farmer-ops","eTag":"00007d03-0000-0600-0000-60a44b170000","status":"Sample
159-
Status","createdDateTime":"2021-05-18T23:17:41Z","modifiedDateTime":"2021-05-18T23:17:43Z","name":"Test
158+
string: '{"id":"test-farmer-farmer-ops","eTag":"02007d9d-0000-0600-0000-60cfd96c0000","status":"Sample
159+
Status","createdDateTime":"2021-06-21T00:12:26Z","modifiedDateTime":"2021-06-21T00:12:28Z","name":"Test
160160
Farmer Updated","description":"Farmer created during testing.","properties":{"foo":"bar","numeric
161161
one":1,"1":"numeric key"}}'
162162
headers:
@@ -167,19 +167,19 @@ interactions:
167167
connection:
168168
- keep-alive
169169
content-length:
170-
- '322'
170+
- '326'
171171
content-type:
172172
- application/json; charset=utf-8
173173
date:
174-
- Tue, 18 May 2021 23:17:44 GMT
175-
server:
176-
- nginx/1.19.1
174+
- Mon, 21 Jun 2021 00:12:29 GMT
177175
strict-transport-security:
178176
- max-age=15724800; includeSubDomains
179177
transfer-encoding:
180178
- chunked
181179
vary:
182180
- Accept-Encoding
181+
x-ms-throttle-information:
182+
- '1'
183183
status:
184184
code: 200
185185
message: OK
@@ -195,7 +195,7 @@ interactions:
195195
Content-Length:
196196
- '0'
197197
User-Agent:
198-
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit)
198+
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0)
199199
method: DELETE
200200
uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview
201201
response:
@@ -211,11 +211,11 @@ interactions:
211211
content-length:
212212
- '0'
213213
date:
214-
- Tue, 18 May 2021 23:17:45 GMT
215-
server:
216-
- nginx/1.19.1
214+
- Mon, 21 Jun 2021 00:12:30 GMT
217215
strict-transport-security:
218216
- max-age=15724800; includeSubDomains
217+
x-ms-throttle-information:
218+
- '1'
219219
status:
220220
code: 204
221221
message: No Content
@@ -229,13 +229,13 @@ interactions:
229229
Connection:
230230
- keep-alive
231231
User-Agent:
232-
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit)
232+
- azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0)
233233
method: GET
234234
uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview
235235
response:
236236
body:
237237
string: '{"error":{"code":"ResourceNotFound","message":"Resource with id ''test-farmer-farmer-ops''
238-
does not exist.","target":null,"details":null,"innererror":null},"traceId":"0HM8KA6VD5AR8:00000002"}'
238+
does not exist.","target":null,"details":null,"innererror":null},"traceId":"0HM9GS8UNNVEU:00000002"}'
239239
headers:
240240
api-deprecated-versions:
241241
- 2020-12-31-preview
@@ -244,19 +244,19 @@ interactions:
244244
connection:
245245
- keep-alive
246246
content-length:
247-
- '189'
247+
- '193'
248248
content-type:
249249
- application/json
250250
date:
251-
- Tue, 18 May 2021 23:17:45 GMT
252-
server:
253-
- nginx/1.19.1
251+
- Mon, 21 Jun 2021 00:12:31 GMT
254252
strict-transport-security:
255253
- max-age=15724800; includeSubDomains
256254
transfer-encoding:
257255
- chunked
258256
vary:
259257
- Accept-Encoding
258+
x-ms-throttle-information:
259+
- '1'
260260
status:
261261
code: 404
262262
message: Not Found

0 commit comments

Comments
 (0)