Skip to content

Commit

Permalink
Merge pull request #453 from ZackJagger/fix/standard-test-data
Browse files Browse the repository at this point in the history
fix(test): standardise test data
  • Loading branch information
jenkins-x-bot authored Sep 15, 2023
2 parents 4541404 + 15b75be commit d3a1b61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/get/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestPreviewGet(t *testing.T) {
require.NoError(t, err)

if tc.current {
assert.Equal(t, fmt.Sprintf("https://%s-pr%v.mqube-test.com", repo, prNumber), o.OutputEnvVars["PREVIEW_URL"])
assert.Equal(t, fmt.Sprintf("https://%s-pr%v.jx-test.com", repo, prNumber), o.OutputEnvVars["PREVIEW_URL"])
assert.Equal(t, fmt.Sprintf("%s-%s-%v", owner, repo, prNumber), o.OutputEnvVars["PREVIEW_NAME"])
assert.Equal(t, fmt.Sprintf("%s-%s-%s-pr-%v", ns, owner, repo, prNumber), o.OutputEnvVars["PREVIEW_NAMESPACE"])
assert.Equal(t, sourceURL, o.OutputEnvVars["PREVIEW_PULL_REQUEST_URL"])
Expand Down
2 changes: 1 addition & 1 deletion pkg/previews/fakepreviews/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func CreateTestPreviewAndPullRequest(data *fakescm.Data, ns, owner, repo string,
prLink := repoLink + "/pull/" + prNumberText
sha := "abcdef1234"
previewNamespace := ns + "-" + owner + "-" + repo + "-pr-" + prNumberText
previewURL := fmt.Sprintf("https://%s-pr%v.mqube-test.com", repo, prNumber)
previewURL := fmt.Sprintf("https://%s-pr%v.jx-test.com", repo, prNumber)
pr := &scm.PullRequest{
Number: prNumber,
Title: prTitle,
Expand Down

0 comments on commit d3a1b61

Please sign in to comment.