Skip to content

Commit

Permalink
chore: Improve azure pipelines e2e error messages (#6528)
Browse files Browse the repository at this point in the history
* chore: Improve azure pipelines e2e error messages

Signed-off-by: Jorge Turrado <[email protected]>

* chore: Improve azure pipelines e2e error messages

Signed-off-by: Jorge Turrado <[email protected]>

* chore: Improve azure pipelines e2e error messages

Signed-off-by: Jorge Turrado <[email protected]>

* chore: Improve azure pipelines e2e error messages

Signed-off-by: Jorge Turrado <[email protected]>

* .

Signed-off-by: Jorge Turrado <[email protected]>

* .

Signed-off-by: Jorge Turrado <[email protected]>

---------

Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer authored Feb 8, 2025
1 parent 14f1fea commit 02c5b16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/scalers/azure/azure_pipelines/azure_pipelines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func getAzDoPoolID(t *testing.T, connection *azuredevops.Connection) int {
defer cancel()
taskClient, err := taskagent.NewClient(ctx, connection)
if err != nil {
t.Errorf("unable to create task agent client")
t.Error(fmt.Sprintf("unable to create task agent client: %s", err.Error()), err)
}
args := taskagent.GetAgentPoolsArgs{
PoolName: &poolName,
Expand All @@ -215,7 +215,7 @@ func queueBuild(t *testing.T, connection *azuredevops.Connection) {
defer cancel()
buildClient, err := build.NewClient(ctx, connection)
if err != nil {
t.Errorf("unable to create build client")
t.Error(fmt.Sprintf("unable to create build client: %s", err.Error()), err)
}
id, err := strconv.Atoi(buildID)
if err != nil {
Expand All @@ -240,7 +240,7 @@ func clearAllBuilds(t *testing.T, connection *azuredevops.Connection) {
defer cancel()
buildClient, err := build.NewClient(ctx, connection)
if err != nil {
t.Errorf("unable to create build client")
t.Error(fmt.Sprintf("unable to create build client: %s", err.Error()), err)
}
var top = 20
args := build.GetBuildsArgs{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func getAzDoPoolID(t *testing.T, connection *azuredevops.Connection) int {
defer cancel()
taskClient, err := taskagent.NewClient(ctx, connection)
if err != nil {
t.Errorf("unable to create task agent client")
t.Error(fmt.Sprintf("unable to create task agent client: %s", err.Error()), err)
}
args := taskagent.GetAgentPoolsArgs{
PoolName: &poolName,
Expand All @@ -222,7 +222,7 @@ func queueBuild(t *testing.T, connection *azuredevops.Connection) {
defer cancel()
buildClient, err := build.NewClient(ctx, connection)
if err != nil {
t.Errorf("unable to create build client")
t.Error(fmt.Sprintf("unable to create build client: %s", err.Error()), err)
}
id, err := strconv.Atoi(buildID)
if err != nil {
Expand All @@ -247,7 +247,7 @@ func clearAllBuilds(t *testing.T, connection *azuredevops.Connection) {
defer cancel()
buildClient, err := build.NewClient(ctx, connection)
if err != nil {
t.Errorf("unable to create build client")
t.Error(fmt.Sprintf("unable to create build client: %s", err.Error()), err)
}
var top = 20
args := build.GetBuildsArgs{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func getAzDoPoolID(t *testing.T, connection *azuredevops.Connection) int {
defer cancel()
taskClient, err := taskagent.NewClient(ctx, connection)
if err != nil {
t.Errorf("unable to create task agent client")
t.Error(fmt.Sprintf("unable to create task agent client: %s", err.Error()), err)
}
args := taskagent.GetAgentPoolsArgs{
PoolName: &poolName,
Expand All @@ -348,7 +348,7 @@ func queueBuild(t *testing.T, connection *azuredevops.Connection, bid int) {
defer cancel()
buildClient, err := build.NewClient(ctx, connection)
if err != nil {
t.Errorf("unable to create build client")
t.Error(fmt.Sprintf("unable to create build client: %s", err.Error()), err)
}
args := build.QueueBuildArgs{
Project: &project,
Expand All @@ -369,7 +369,7 @@ func clearAllBuilds(t *testing.T, connection *azuredevops.Connection) {
defer cancel()
buildClient, err := build.NewClient(ctx, connection)
if err != nil {
t.Errorf("unable to create build client")
t.Error(fmt.Sprintf("unable to create build client: %s", err.Error()), err)
}
var top = 20
args := build.GetBuildsArgs{
Expand Down

0 comments on commit 02c5b16

Please sign in to comment.