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

migrate some services from examples to openApi part 46; affects [codeclimate librariesio nexus] and securityheaders #9933

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

chris48s
Copy link
Member

Refs #9285

With nexus, we don't have passing tests for nexus v3
I have actually managed to find a couple of public nexus servers running v3:

With Security Headers, the tests fail because the badges themselves are broken #9154 I figure lets just migrate the examples here and leave that as an issue for another time.

@chris48s chris48s added service-badge New or updated service badge documentation Developer and end-user documentation labels Jan 29, 2024
Copy link
Contributor

github-actions bot commented Jan 29, 2024

Warnings
⚠️ This PR modified service code for librariesio but not its test code.
That's okay so long as it's refactoring existing code.
⚠️ This PR modified service code for security-headers but not its test code.
That's okay so long as it's refactoring existing code.
Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against 462c930

Copy link
Contributor

🚀 Updated review app: https://pr-9933-badges-shields.fly.dev

@PyvesB
Copy link
Member

PyvesB commented Feb 10, 2024

but I can't work out how to get a working badge out of either of them.

For example:

https://pr-9933-badges-shields.fly.dev/nexus/r/me.neznamy/tab-api?server=https%3A%2F%2Frepo.tomkeuper.com&nexusVersion=3

@chris48s chris48s changed the title migrate some services from examples to openApi part 46; affects [codeclimate librariesio] and nexus securityheaders migrate some services from examples to openApi part 46; affects [codeclimate librariesio nexus] and securityheaders Feb 11, 2024
@chris48s
Copy link
Member Author

OK. Thanks for the pointer. I think I mostly figured it out 🤞

@@ -269,7 +267,7 @@ t.create('Nexus 3 - search snapshot version valid snapshot artifact')

t.create('Nexus 3 - search snapshot version for artifact without snapshots')
.get(
'/s/javax.inject/javax.inject.json?server=https://nexus.pentaho.org&nexusVersion=3',
'/s/com.tomkeuper/spigot.json?server=https://repo.tomkeuper.com&nexusVersion=3',
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 is the one I am least sure if I got right. It does appear to throw the right error message.

@@ -46,7 +46,7 @@ t.create('test coverage when outer user repos query returns multiple items')
},
latest_default_branch_test_report: {
data: {
id: '6463c8a3e3bc340001004bce',
id: '65a1662cb0077b00013cb4de',
Copy link
Member Author

@chris48s chris48s Feb 11, 2024

Choose a reason for hiding this comment

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

I feel like this is not a sustainable solution for this test, but I think I'm not going to deal with re-writing this test in this PR as it is a bit of a yak-shave that isn't really related to the original point of this PR.

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 the tests, I think all is good! 👍🏻

@chris48s chris48s added this pull request to the merge queue Feb 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 13, 2024
@chris48s chris48s added this pull request to the merge queue Feb 13, 2024
Merged via the queue into master with commit c121889 Feb 13, 2024
36 checks passed
@chris48s chris48s deleted the 9285-part46 branch February 13, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Developer and end-user documentation service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants