Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <pingsutw@apache.org>
  • Loading branch information
pingsutw committed Sep 26, 2023
1 parent e1fd8a4 commit 9944aae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion go/tasks/plugins/webapi/agent/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR
}

func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest webapi.Resource, err error) {
logger.Infof(ctx, "Getting task metadata [%v]", taskCtx.ResourceMeta())
if taskCtx.ResourceMeta() == nil {
return nil, fmt.Errorf("resource metadata is nil")
}

Check warning on line 126 in go/tasks/plugins/webapi/agent/plugin.go

View check run for this annotation

Codecov / codecov/patch

go/tasks/plugins/webapi/agent/plugin.go#L125-L126

Added lines #L125 - L126 were not covered by tests
Expand Down
2 changes: 1 addition & 1 deletion go/tasks/plugins/webapi/databricks/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest weba
jobID := fmt.Sprintf("%.0f", data["job_id"])
lifeCycleState := fmt.Sprintf("%s", jobState["life_cycle_state"])
resultState := fmt.Sprintf("%s", jobState["result_state"])
return &ResourceWrapper{
return ResourceWrapper{
StatusCode: resp.StatusCode,
JobID: jobID,
LifeCycleState: lifeCycleState,
Expand Down
2 changes: 1 addition & 1 deletion go/tasks/plugins/webapi/snowflake/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest weba
return nil, err
}
message := fmt.Sprintf("%v", data["message"])
return &ResourceWrapper{
return ResourceWrapper{
StatusCode: resp.StatusCode,
Message: message,
}, nil
Expand Down

0 comments on commit 9944aae

Please sign in to comment.