You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/function-app-service-bus/dotnet/README.md
+93-1Lines changed: 93 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,99 @@ All deployment methods have been fully tested against Azure and the LocalStack f
81
81
82
82
## Test
83
83
84
-
Once the resources and function app have been deployed, you can use the [call-http-trigger.sh](./scripts/call-http-trigger.sh) Bash script to invoke the **GetGreetings** HTTP-triggered function. This function returns the most recent greetings stored in the in-memory circular buffer, allowing you to verify that the entire message pipeline is working end to end.
84
+
Once the resources and function app have been deployed, you can use the [call-http-trigger.sh](./scripts/call-http-trigger.sh) Bash script to invoke the **GetGreetings** HTTP-triggered function. This function returns the most recent greetings stored in the in-memory circular buffer, allowing you to verify that the entire message pipeline is working end to end. The output should look like this:
85
+
86
+
```bash
87
+
Getting functionapp name...
88
+
Function app [local-func-test] successfully retrieved.
89
+
Getting resource group name forfunctionapp [local-func-test]...
90
+
Resource group [local-rg] successfully retrieved.
91
+
Getting the default host name of the functionapp [local-func-test]...
92
+
Function app default host name [local-func-test.azurewebsites.azure.localhost.localstack.cloud:4566] successfully retrieved.
93
+
Finding container name with prefix [ls-local-func-test]...
94
+
Looking for containers with names starting with [ls-local-func-test]...
95
+
Found matching container [ls-local-func-test-tdkqjh]
96
+
Container [ls-local-func-test-tdkqjh] found successfully
97
+
Getting IP address for container [ls-local-func-test-tdkqjh]...
98
+
IP address [172.17.0.7] retrieved successfully for container [ls-local-func-test-tdkqjh]
99
+
Getting the host port mapped to internal port 80 in container [ls-local-func-test-tdkqjh]...
100
+
Mapped host port [42330] retrieved successfully for container [ls-local-func-test-tdkqjh]
101
+
Calling HTTP trigger functionto retrieve the last [10] greetings via emulator...
102
+
{
103
+
"requester": {
104
+
"sent": [
105
+
"Paolo",
106
+
"Max"
107
+
]
108
+
},
109
+
"handler": {
110
+
"received": [
111
+
"Paolo",
112
+
"Max"
113
+
],
114
+
"sent": [
115
+
"Welcome Paolo, glad you're here!",
116
+
"Salutations Max, how's everything going?"
117
+
]
118
+
},
119
+
"consumer": {
120
+
"received": [
121
+
"Welcome Paolo, glad you're here!",
122
+
"Salutations Max, how's everything going?"
123
+
]
124
+
}
125
+
}
126
+
Calling HTTP trigger functionto retrieve the last [10] greetings via container IP address [172.17.0.7]...
127
+
{
128
+
"requester": {
129
+
"sent": [
130
+
"Paolo",
131
+
"Max"
132
+
]
133
+
},
134
+
"handler": {
135
+
"received": [
136
+
"Paolo",
137
+
"Max"
138
+
],
139
+
"sent": [
140
+
"Welcome Paolo, glad you're here!",
141
+
"Salutations Max, how's everything going?"
142
+
]
143
+
},
144
+
"consumer": {
145
+
"received": [
146
+
"Welcome Paolo, glad you're here!",
147
+
"Salutations Max, how's everything going?"
148
+
]
149
+
}
150
+
}
151
+
Calling HTTP trigger functionto retrieve the last [10] greetings via host port [42330]...
152
+
{
153
+
"requester": {
154
+
"sent": [
155
+
"Paolo",
156
+
"Max"
157
+
]
158
+
},
159
+
"handler": {
160
+
"received": [
161
+
"Paolo",
162
+
"Max"
163
+
],
164
+
"sent": [
165
+
"Welcome Paolo, glad you're here!",
166
+
"Salutations Max, how's everything going?"
167
+
]
168
+
},
169
+
"consumer": {
170
+
"received": [
171
+
"Welcome Paolo, glad you're here!",
172
+
"Salutations Max, how's everything going?"
173
+
]
174
+
}
175
+
}
176
+
```
85
177
86
178
You can also inspect the function app's runtime behavior by viewing the logs of its Docker container. Run `docker logs ls-local-func-test-xxxxxx` (replacing `xxxxxx` with the actual container suffix) to see output similar to the following:
0 commit comments