Skip to content

fix: correct test results URL - #595

Open
SajanBisht wants to merge 1 commit into
microcks:masterfrom
SajanBisht:fix/test-results-url
Open

SajanBisht wants to merge 1 commit into
microcks:masterfrom
SajanBisht:fix/test-results-url

Conversation

@SajanBisht

@SajanBisht SajanBisht commented Oct 27, 2026 •

Copy link
Copy Markdown

Summary

  • Remove the trailing /api path and trailing slash from the server URL before generating test result links.
  • Apply the normalization to both regular test execution and dry-run watch mode.
  • Add regression tests for URL normalization and generated test detail links.

Testing

  • go test ./cmd
  • go test ./...
  • git diff --check

Fixes #589

AI disclosure

ChatGPT (OpenAI) assisted with test development. I reviewed the changes, ran the tests, and take responsibility for the submitted code...

Signed-off-by: SajanBisht <sajanb225@gmail.com>
@github-actions

Copy link
Copy Markdown

👋 @SajanBisht

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

@Vaishnav88sk

Copy link
Copy Markdown
Contributor

@SajanBisht
Thanks for your contribution!
Could you please open an issue first to describe the problem or bug you experienced?
Once that's done, we'd be happy to move forward with this PR!

@SajanBisht

Copy link
Copy Markdown
Author

@Vaishnav88sk Sorry, the issue was already there. I just forgot to link the PR to it. I've linked it now...

@Caesarsage Caesarsage left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SajanBisht, this fixes #589.

Left a nit

Comment thread cmd/testDryRun.go
return nil
}

func normalizeServerURL(serverAddr string) string {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: could you move normalizeServerURL out of testDryRun.go, since test.go uses it too?

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 30 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions Bot added the stale State due to inactivity label Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale State due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong link to test results

3 participants