@@ -184,6 +184,16 @@ public static function invalidWorkflowTaskCommandScopeProvider(): array
184184 'errorField ' => 'commands.0.heartbeat_timeout ' ,
185185 'expectedMessage ' => 'heartbeat_timeout cannot exceed start_to_close_timeout. ' ,
186186 ],
187+ 'string heartbeat exceeds string start to close ' => [
188+ 'command ' => [
189+ 'type ' => 'schedule_activity ' ,
190+ 'activity_type ' => 'tests.external-activity ' ,
191+ 'start_to_close_timeout ' => '10 ' ,
192+ 'heartbeat_timeout ' => '30 ' ,
193+ ],
194+ 'errorField ' => 'commands.0.heartbeat_timeout ' ,
195+ 'expectedMessage ' => 'heartbeat_timeout cannot exceed start_to_close_timeout. ' ,
196+ ],
187197 'schedule to start exceeds schedule to close ' => [
188198 'command ' => [
189199 'type ' => 'schedule_activity ' ,
@@ -194,6 +204,26 @@ public static function invalidWorkflowTaskCommandScopeProvider(): array
194204 'errorField ' => 'commands.0.schedule_to_start_timeout ' ,
195205 'expectedMessage ' => 'schedule_to_start_timeout cannot exceed schedule_to_close_timeout. ' ,
196206 ],
207+ 'string start to close exceeds string schedule to close ' => [
208+ 'command ' => [
209+ 'type ' => 'schedule_activity ' ,
210+ 'activity_type ' => 'tests.external-activity ' ,
211+ 'start_to_close_timeout ' => '60 ' ,
212+ 'schedule_to_close_timeout ' => '30 ' ,
213+ ],
214+ 'errorField ' => 'commands.0.start_to_close_timeout ' ,
215+ 'expectedMessage ' => 'start_to_close_timeout cannot exceed schedule_to_close_timeout. ' ,
216+ ],
217+ 'string schedule to start exceeds string schedule to close ' => [
218+ 'command ' => [
219+ 'type ' => 'schedule_activity ' ,
220+ 'activity_type ' => 'tests.external-activity ' ,
221+ 'schedule_to_start_timeout ' => '60 ' ,
222+ 'schedule_to_close_timeout ' => '30 ' ,
223+ ],
224+ 'errorField ' => 'commands.0.schedule_to_start_timeout ' ,
225+ 'expectedMessage ' => 'schedule_to_start_timeout cannot exceed schedule_to_close_timeout. ' ,
226+ ],
197227 'child run exceeds execution ' => [
198228 'command ' => [
199229 'type ' => 'start_child_workflow ' ,
@@ -204,6 +234,16 @@ public static function invalidWorkflowTaskCommandScopeProvider(): array
204234 'errorField ' => 'commands.0.run_timeout_seconds ' ,
205235 'expectedMessage ' => 'run_timeout_seconds cannot exceed execution_timeout_seconds. ' ,
206236 ],
237+ 'string child run exceeds string execution ' => [
238+ 'command ' => [
239+ 'type ' => 'start_child_workflow ' ,
240+ 'workflow_type ' => 'tests.external-child-workflow ' ,
241+ 'execution_timeout_seconds ' => '60 ' ,
242+ 'run_timeout_seconds ' => '120 ' ,
243+ ],
244+ 'errorField ' => 'commands.0.run_timeout_seconds ' ,
245+ 'expectedMessage ' => 'run_timeout_seconds cannot exceed execution_timeout_seconds. ' ,
246+ ],
207247 ];
208248 }
209249
0 commit comments