-
Couldn't load subscription status.
- Fork 155
test(container): add tests for update #5072
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
test(container): add tests for update #5072
Conversation
|
|
||
| func createContainerWithImage(metaKey string, registryImageMetaKey string) core.BeforeFunc { | ||
| return core.ExecStoreBeforeCmd(metaKey, fmt.Sprintf( | ||
| "scw container container create namespace-id={{ .ContainerNamespace.ID }} name=%s registry-image={{ (index .%s 0).FullName }}:latest port=80 deploy=true -w", |
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.
Would it be possible to have registry image passed as a key?
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.
In the current implementation, I have modified the StoreImageInMeta function to have enough checks and to make sure that the full identifier for the image is stored in the Meta. Therefore, when the template is rendered here, we can be certain that the value is correct.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5072 +/- ##
==========================================
- Coverage 57.44% 57.43% -0.02%
==========================================
Files 307 308 +1
Lines 67083 67125 +42
==========================================
+ Hits 38535 38551 +16
- Misses 27113 27140 +27
+ Partials 1435 1434 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7a8bbf6 to
87c7bf2
Compare
No description provided.