-
Notifications
You must be signed in to change notification settings - Fork 70
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
accept the correct input for executor #1506
Conversation
can we add test cases for all types that are accepted. Also, do we need to update the flag description to indicate what is supported? Can you expand more on your PR description so its clear what is changing for anyone else who do not have proper context |
cloud/deployment/deployment.go
Outdated
@@ -344,9 +344,10 @@ func Create(name, workspaceID, description, clusterID, runtimeVersion, dagDeploy | |||
requestedCloudProvider = astroplatformcore.CreateStandardDeploymentRequestCloudProviderAZURE | |||
} | |||
var requestedExecutor astroplatformcore.CreateStandardDeploymentRequestExecutor | |||
if executor == CeleryExecutor { | |||
if strings.ToUpper(executor) == strings.ToUpper(CeleryExecutor) || strings.ToUpper(executor) == strings.ToUpper(CELERY) { |
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 we add some unit tests for all these cases
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1506 +/- ##
==========================================
- Coverage 85.90% 85.84% -0.07%
==========================================
Files 112 112
Lines 14847 14862 +15
==========================================
+ Hits 12755 12758 +3
- Misses 1254 1266 +12
Partials 838 838 ☔ View full report in Codecov by Sentry. |
Description
Make it so deployment create/update accept the correct executor input
🎟 Issue(s)
Related #XXX
🧪 Functional Testing
📸 Screenshots
📋 Checklist
make test
before taking out of draftmake lint
before taking out of draft