Skip to content

Commit 29c48d5

Browse files
committed
fix(tests): fixing wiremock tests with a content-type match temporarily
1 parent 9883fa6 commit 29c48d5

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.fernignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# manual fix wiremock/wiremock-mappings.json due to x-fern-sdk-method-name
2+
wiremock/wiremock-mappings.json

wiremock/wiremock-mappings.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@
5858
"name": "Transcribe and analyze pre-recorded audio and video - default",
5959
"request": {
6060
"urlPathTemplate": "/v1/listen",
61-
"method": "POST"
61+
"method": "POST",
62+
"headers": {
63+
"Content-Type": {
64+
"equalTo": "application/json"
65+
}
66+
}
6267
},
6368
"response": {
6469
"status": 200,
@@ -84,11 +89,16 @@
8489
"name": "Transcribe and analyze pre-recorded audio and video - default",
8590
"request": {
8691
"urlPathTemplate": "/v1/listen",
87-
"method": "POST"
92+
"method": "POST",
93+
"headers": {
94+
"Content-Type": {
95+
"equalTo": "application/octet-stream"
96+
}
97+
}
8898
},
8999
"response": {
90100
"status": 200,
91-
"body": "\"\"",
101+
"body": "{\n \"metadata\": {\n \"request_id\": \"a847f427-4ad5-4d67-9b95-db801e58251c\",\n \"sha256\": \"154e291ecfa8be6ab8343560bcc109008fa7853eb5372533e8efdefc9b504c33\",\n \"created\": \"2024-05-12T18:57:13Z\",\n \"duration\": 25.933313,\n \"channels\": 1,\n \"models\": [\n \"30089e05-99d1-4376-b32e-c263170674af\"\n ],\n \"model_info\": {\n \"30089e05-99d1-4376-b32e-c263170674af\": {\n \"name\": \"2-general-nova\",\n \"version\": \"2024-01-09.29447\",\n \"arch\": \"nova-2\"\n }\n },\n \"summary_info\": {\n \"model_uuid\": \"67875a7f-c9c4-48a0-aa55-5bdb8a91c34a\",\n \"input_tokens\": 95,\n \"output_tokens\": 63\n },\n \"sentiment_info\": {\n \"model_uuid\": \"80ab3179-d113-4254-bd6b-4a2f96498695\",\n \"input_tokens\": 105,\n \"output_tokens\": 105\n },\n \"topics_info\": {\n \"model_uuid\": \"80ab3179-d113-4254-bd6b-4a2f96498695\",\n \"input_tokens\": 105,\n \"output_tokens\": 7\n },\n \"intents_info\": {\n \"model_uuid\": \"80ab3179-d113-4254-bd6b-4a2f96498695\",\n \"input_tokens\": 105,\n \"output_tokens\": 4\n },\n \"tags\": [\n \"test\"\n ]\n },\n \"results\": {\n \"channels\": [\n {}\n ],\n \"utterances\": [\n {}\n ],\n \"summary\": {\n \"result\": \"success\",\n \"short\": \"Speaker 0 discusses the significance of the first all-female spacewalk with an all-female team, stating that it is a tribute to the skilled and qualified women who were denied opportunities in the past.\"\n },\n \"sentiments\": {\n \"segments\": [\n {\n \"text\": \"Yeah. As as much as, um, it's worth celebrating, uh, the first, uh, spacewalk, um, with an all-female team, I think many of us are looking forward to it just being normal. And, um, I think if it signifies anything, it is, uh, to honor the the women who came before us who, um, were skilled and qualified, um, and didn't get the the same opportunities that we have today.\",\n \"start_word\": 0,\n \"end_word\": 69,\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810546875\n }\n ],\n \"average\": {\n \"sentiment\": \"positive\",\n \"sentiment_score\": 0.5810185185185185\n }\n }\n }\n}",
92102
"headers": {
93103
"Content-Type": "application/json"
94104
}

0 commit comments

Comments
 (0)