@@ -63,11 +63,11 @@ func TestConvertLinkWorkflowEventToNexusLink(t *testing.T) {
63
63
Scheme : "temporal" ,
64
64
Path : "/namespaces/ns/workflows/wf-id/run-id/history" ,
65
65
RawPath : "/namespaces/ns/workflows/wf-id/run-id/history" ,
66
- RawQuery : "eventID=1&eventType=WorkflowExecutionStarted &referenceType=EventReference" ,
66
+ RawQuery : "eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED &referenceType=EventReference" ,
67
67
},
68
68
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
69
69
},
70
- outputURL : "temporal:///namespaces/ns/workflows/wf-id/run-id/history?eventID=1&eventType=WorkflowExecutionStarted &referenceType=EventReference" ,
70
+ outputURL : "temporal:///namespaces/ns/workflows/wf-id/run-id/history?eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED &referenceType=EventReference" ,
71
71
},
72
72
{
73
73
name : "valid with angle bracket" ,
@@ -87,11 +87,11 @@ func TestConvertLinkWorkflowEventToNexusLink(t *testing.T) {
87
87
Scheme : "temporal" ,
88
88
Path : "/namespaces/ns/workflows/wf-id>/run-id/history" ,
89
89
RawPath : "/namespaces/ns/workflows/wf-id%3E/run-id/history" ,
90
- RawQuery : "eventID=1&eventType=WorkflowExecutionStarted &referenceType=EventReference" ,
90
+ RawQuery : "eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED &referenceType=EventReference" ,
91
91
},
92
92
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
93
93
},
94
- outputURL : "temporal:///namespaces/ns/workflows/wf-id%3E/run-id/history?eventID=1&eventType=WorkflowExecutionStarted &referenceType=EventReference" ,
94
+ outputURL : "temporal:///namespaces/ns/workflows/wf-id%3E/run-id/history?eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED &referenceType=EventReference" ,
95
95
},
96
96
{
97
97
name : "valid with slash" ,
@@ -111,11 +111,11 @@ func TestConvertLinkWorkflowEventToNexusLink(t *testing.T) {
111
111
Scheme : "temporal" ,
112
112
Path : "/namespaces/ns/workflows/wf-id//run-id/history" ,
113
113
RawPath : "/namespaces/ns/workflows/wf-id%2F/run-id/history" ,
114
- RawQuery : "eventID=1&eventType=WorkflowExecutionStarted &referenceType=EventReference" ,
114
+ RawQuery : "eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED &referenceType=EventReference" ,
115
115
},
116
116
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
117
117
},
118
- outputURL : "temporal:///namespaces/ns/workflows/wf-id%2F/run-id/history?eventID=1&eventType=WorkflowExecutionStarted &referenceType=EventReference" ,
118
+ outputURL : "temporal:///namespaces/ns/workflows/wf-id%2F/run-id/history?eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED &referenceType=EventReference" ,
119
119
},
120
120
{
121
121
name : "valid event id missing" ,
@@ -134,11 +134,11 @@ func TestConvertLinkWorkflowEventToNexusLink(t *testing.T) {
134
134
Scheme : "temporal" ,
135
135
Path : "/namespaces/ns/workflows/wf-id/run-id/history" ,
136
136
RawPath : "/namespaces/ns/workflows/wf-id/run-id/history" ,
137
- RawQuery : "eventType=WorkflowExecutionStarted &referenceType=EventReference" ,
137
+ RawQuery : "eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED &referenceType=EventReference" ,
138
138
},
139
139
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
140
140
},
141
- outputURL : "temporal:///namespaces/ns/workflows/wf-id/run-id/history?eventType=WorkflowExecutionStarted &referenceType=EventReference" ,
141
+ outputURL : "temporal:///namespaces/ns/workflows/wf-id/run-id/history?eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED &referenceType=EventReference" ,
142
142
},
143
143
}
144
144
@@ -166,7 +166,7 @@ func TestConvertNexusLinkToLinkWorkflowEvent(t *testing.T) {
166
166
URL : & url.URL {
167
167
Scheme : "temporal" ,
168
168
Path : "/namespaces/ns/workflows/wf-id/run-id/history" ,
169
- RawQuery : "referenceType=EventReference&eventID=1&eventType=WorkflowExecutionStarted " ,
169
+ RawQuery : "referenceType=EventReference&eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED " ,
170
170
},
171
171
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
172
172
},
@@ -189,7 +189,7 @@ func TestConvertNexusLinkToLinkWorkflowEvent(t *testing.T) {
189
189
Scheme : "temporal" ,
190
190
Path : "/namespaces/ns/workflows/wf-id>/run-id/history" ,
191
191
RawPath : "/namespaces/ns/workflows/wf-id%2E/run-id/history" ,
192
- RawQuery : "referenceType=EventReference&eventID=1&eventType=WorkflowExecutionStarted " ,
192
+ RawQuery : "referenceType=EventReference&eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED " ,
193
193
},
194
194
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
195
195
},
@@ -212,7 +212,7 @@ func TestConvertNexusLinkToLinkWorkflowEvent(t *testing.T) {
212
212
Scheme : "temporal" ,
213
213
Path : "/namespaces/ns/workflows/wf-id//run-id/history" ,
214
214
RawPath : "/namespaces/ns/workflows/wf-id%2F/run-id/history" ,
215
- RawQuery : "referenceType=EventReference&eventID=1&eventType=WorkflowExecutionStarted " ,
215
+ RawQuery : "referenceType=EventReference&eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED " ,
216
216
},
217
217
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
218
218
},
@@ -235,7 +235,7 @@ func TestConvertNexusLinkToLinkWorkflowEvent(t *testing.T) {
235
235
Scheme : "temporal" ,
236
236
Path : "/namespaces/ns/workflows/wf-id/run-id/history" ,
237
237
RawPath : "/namespaces/ns/workflows/wf-id/run-id/history" ,
238
- RawQuery : "referenceType=EventReference&eventID=&eventType=WorkflowExecutionStarted " ,
238
+ RawQuery : "referenceType=EventReference&eventID=&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED " ,
239
239
},
240
240
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
241
241
},
@@ -257,7 +257,7 @@ func TestConvertNexusLinkToLinkWorkflowEvent(t *testing.T) {
257
257
Scheme : "random" ,
258
258
Path : "/namespaces/ns/workflows/wf-id/run-id/history" ,
259
259
RawPath : "/namespaces/ns/workflows/wf-id/run-id/history" ,
260
- RawQuery : "referenceType=EventReference&eventID=1&eventType=WorkflowExecutionStarted " ,
260
+ RawQuery : "referenceType=EventReference&eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED " ,
261
261
},
262
262
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
263
263
},
@@ -270,7 +270,7 @@ func TestConvertNexusLinkToLinkWorkflowEvent(t *testing.T) {
270
270
Scheme : "temporal" ,
271
271
Path : "/namespaces/ns/workflows/wf-id/run-id/" ,
272
272
RawPath : "/namespaces/ns/workflows/wf-id/run-id/" ,
273
- RawQuery : "referenceType=EventReference&eventID=1&eventType=WorkflowExecutionStarted " ,
273
+ RawQuery : "referenceType=EventReference&eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED " ,
274
274
},
275
275
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
276
276
},
@@ -283,7 +283,7 @@ func TestConvertNexusLinkToLinkWorkflowEvent(t *testing.T) {
283
283
Scheme : "temporal" ,
284
284
Path : "/namespaces//workflows/wf-id/run-id/history" ,
285
285
RawPath : "/namespaces//workflows/wf-id/run-id/history" ,
286
- RawQuery : "referenceType=EventReference&eventID=1&eventType=WorkflowExecutionStarted " ,
286
+ RawQuery : "referenceType=EventReference&eventID=1&eventType=EVENT_TYPE_WORKFLOW_EXECUTION_STARTED " ,
287
287
},
288
288
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
289
289
},
@@ -296,7 +296,7 @@ func TestConvertNexusLinkToLinkWorkflowEvent(t *testing.T) {
296
296
Scheme : "temporal" ,
297
297
Path : "/namespaces/ns/workflows/wf-id/run-id/history" ,
298
298
RawPath : "/namespaces/ns/workflows/wf-id/run-id/history" ,
299
- RawQuery : "referenceType=EventReference&eventID=1&eventType=WorkflowExecution " ,
299
+ RawQuery : "referenceType=EventReference&eventID=1&eventType=EVENT_TYPE_INVALID " ,
300
300
},
301
301
Type : "temporal.api.common.v1.Link.WorkflowEvent" ,
302
302
},
0 commit comments