Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix [github] service tests #9425

Merged
merged 5 commits into from
Aug 7, 2023
Merged

Conversation

chris48s
Copy link
Member

No description provided.

@chris48s chris48s added the keep-service-tests-green Related to fixing failing tests of the services label Jul 31, 2023
@@ -247,7 +247,7 @@ export default class GithubDownloads extends GithubAuthV3Service {
}

if (releases.length === 0) {
throw new NotFound({ prettyMessage: 'no releases' })
throw new NotFound({ prettyMessage: 'no releases found' })
Copy link
Member Author

Choose a reason for hiding this comment

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

The issue here is that fetchLatestRelease() (which we also call in this service) throws "no releases found". I've brought the message for both services into line.

@@ -8,4 +8,4 @@ t.create('hit counter')

t.create('hit counter for nonexistent repo')
.get('/badges/puppets/async%20handle.json')
.expectBadge({ label: 'counter', message: 'repo not found' })
.expectBadge({ label: 'async handle counter', message: '0' })
Copy link
Member Author

Choose a reason for hiding this comment

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

This query no longer throws a 404 for repo doesn't exist - it just says zero results

Copy link
Member

Choose a reason for hiding this comment

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

Well, this is unfortunate.

@github-actions
Copy link
Contributor

Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against 13ca878

Copy link
Member

@PyvesB PyvesB left a comment

Choose a reason for hiding this comment

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

Thanks for updating these!

@chris48s chris48s added this pull request to the merge queue Aug 7, 2023
Merged via the queue into badges:master with commit d4faad1 Aug 7, 2023
20 checks passed
@chris48s chris48s deleted the github-tests20230731 branch August 7, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep-service-tests-green Related to fixing failing tests of the services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants