-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
azurite preset based on the localstack preset #837
Conversation
This is fantastic, thank you for the contribution! I wasn't aware of azurite, it looks very useful, I hope it gets extended with more azure services in the future 😼 I wasn't able to properly review the code, but I have 2 small comments so far:
I will find time to go over the code and provide more feedback if needed. So far it looks great and very similar to localstack, which is very nice. |
Thanks for having a look into it and the missing files! They are added now. |
I think that the changes in CONTRIBUTING.md can be reverted. Correct, @orlangure ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so cool, thank you!
A couple of small comments I'd be happy you address, and this is good to go.
Also, can you please rebase from master? There was another preset merged just now, and there are a few conflicts because of it. Thanks!
CONTRIBUTING.md
Outdated
1. Generate [client SDK | ||
code](https://github.com/orlangure/gnomock#using-gnomock-server). Gnomock | ||
uses OpenAPI to generate client code from swagger specification. | ||
|
||
1. Add client SDK tests for the new preset. These tests go into | ||
[`sdktest`](https://github.com/orlangure/gnomock/tree/master/sdktest) | ||
package. They allow to make sure that client code in languages other than Go | ||
does not break after each update. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are no longer required, I removed these points a few days ago😼
preset/azurite/README.md
Outdated
@@ -0,0 +1,73 @@ | |||
# Gnomock Blobstorage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what's the best name for this one.
In localstack, we call it "localstack", and there are internal services that it exposes. Even though the users look for s3 or sqs, the preset is still named localstack.
I think we should keep this convention, and since you already named the preset azurite
, I believe the readme should also use the term "azurite".
The Example (this is great by the way!) on the other hand should keep the name "blog storage" in it, because it demonstrates a subset of azurite capabilities.
Do you agree?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the test i'm fine.
Or do you refer to the internal/gnomockd/azurite_test.go?
In this one I would leave it as "TestAzurite" because it is the same in localstack (it only tests s3 but is named localstack)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please check once more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your great work and sorry for the delay in getting this merged.
A few more minor comments for you to address if that's ok.
Also, it appears that the tests are failing, and there are some lint warnings. Will you have time to resolve these?
go.mod
Outdated
k8s.io/api v0.26.1 | ||
k8s.io/apimachinery v0.26.1 | ||
k8s.io/client-go v0.26.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the dependencies were accidentally rolled back, can you revert please?
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #837 +/- ##
==========================================
- Coverage 85.87% 85.50% -0.37%
==========================================
Files 50 55 +5
Lines 2350 2567 +217
==========================================
+ Hits 2018 2195 +177
- Misses 173 193 +20
- Partials 159 179 +20
☔ View full report in Codecov by Sentry. |
@orlangure can you please cross check again? |
Hey @aeolus3000, your tests and their coverage are great, the build just didn't start automatically because you still don't have any merged contributions (not for long 😼). Now that I manually approved those, codecov no longer complains, but you do have a couple of minor lint warnings to resolve. After that this PR will be merged, and I'll prepare a new release so everybody can enjoy your work. Thank you! |
@orlangure I have found some time on the weekend to work on the lint checks. Can you please approve the workflows? |
f67019a
to
2ec5674
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work, thank you for doing this!
Would you mind resolving merge conflicts so I can merge this? |
Hey @orlangure I can't find a merge conflict. Can you point that out to me please? |
Hey @aeolus3000, |
Proposing a azurite preset.
I would still need help with the following steps:
Generate [client SDK code]
Azurrite offers other stuff like table store but I didn't need that yet. Does anyone feel energetic to add that here?