Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-cross committed May 14, 2024
1 parent 06eed7a commit 7b73939
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/meroxa/root/apps/describe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const (
"pipeline_filename": "test-pipeline-1.yaml",
"pipeline_original": "pipeline original settings",
"state": "provisioned",
"stream_tech": "kafka",
"stream_provider": "kafka",
"updated": "2024-04-01 20:13:20.111Z"
}
]
Expand Down
7 changes: 1 addition & 6 deletions cmd/meroxa/root/apps/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ package apps
import (
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"strings"
"testing"

Expand Down Expand Up @@ -60,15 +58,12 @@ func TestListApplicationExecution(t *testing.T) {

allApps := []Application{*a, *a2}

filter := &url.Values{}
filter.Add("filter", fmt.Sprintf("(id='%s' || name='%s')", a.Name, a.Name))

httpResp := &http.Response{
Body: io.NopCloser(strings.NewReader(body)),
Status: "200 OK",
StatusCode: 200,
}
client.EXPECT().CollectionRequest(ctx, "GET", applicationCollection, "", nil, *filter).Return(
client.EXPECT().CollectionRequest(ctx, "GET", applicationCollection, "", nil, nil).Return(
httpResp,
nil,
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/meroxa/root/apps/open_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestOpenAppExecution(t *testing.T) {
desc: "Successfully open app link with arg",
appArg: "app-name",
tenant: "test",
expectURL: "https://test.na1.meroxa.cloud/apps/lxjcdlsvet3aeoe/detail",
expectURL: "https://test.na1.meroxa.cloud/apps/lxjcdlsvet3aeoe",
appPath: "",
apiURL: "https://test.na1.meroxa.cloud",
},
Expand Down

0 comments on commit 7b73939

Please sign in to comment.