Skip to content

Commit

Permalink
fix: rename url
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <vladislav@kubeshop.io>
  • Loading branch information
vsukhin committed Dec 2, 2024
1 parent 2819e43 commit 81b0295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/v1/client/testworkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ func (c TestWorkflowClient) GetTestWorkflowExecutionNotifications(id string) (no
// GetTestWorkflowExecutionServiceNotifications returns events stream from job pods, based on job pods logs
func (c TestWorkflowClient) GetTestWorkflowExecutionServiceNotifications(id, serviceName string, serviceIndex int) (notifications chan testkube.TestWorkflowExecutionNotification, err error) {
notifications = make(chan testkube.TestWorkflowExecutionNotification)
uri := c.testWorkflowTransport.GetURI("/test-workflow-executions/%s/notifications/%s/%d", id, serviceName, serviceIndex)
uri := c.testWorkflowTransport.GetURI("/test-workflow-executions/%s/notifications/services/%s/%d", id, serviceName, serviceIndex)
err = c.testWorkflowTransport.GetTestWorkflowExecutionNotifications(uri, notifications)
return notifications, err
}

// GetTestWorkflowExecutionParallelStepNotifications returns events stream from job pods, based on job pods logs
func (c TestWorkflowClient) GetTestWorkflowExecutionParallelStepNotifications(id, parallelStepName string, parallelStepIndex int) (notifications chan testkube.TestWorkflowExecutionNotification, err error) {
notifications = make(chan testkube.TestWorkflowExecutionNotification)
uri := c.testWorkflowTransport.GetURI("/test-workflow-executions/%s/notifications/%s/%d", id, parallelStepName, parallelStepIndex)
uri := c.testWorkflowTransport.GetURI("/test-workflow-executions/%s/notifications/parallel-steps/%s/%d", id, parallelStepName, parallelStepIndex)
err = c.testWorkflowTransport.GetTestWorkflowExecutionNotifications(uri, notifications)
return notifications, err
}
Expand Down

0 comments on commit 81b0295

Please sign in to comment.