-
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
Add compose export error #1505
Add compose export error #1505
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1505 +/- ##
=======================================
Coverage 85.92% 85.93%
=======================================
Files 112 112
Lines 14911 14913 +2
=======================================
+ Hits 12813 12815 +2
Misses 1264 1264
Partials 834 834 ☔ View full report in Codecov by Sentry. |
@@ -932,6 +933,9 @@ func airflowSettingsExport(cmd *cobra.Command, args []string) error { | |||
fmt.Println("Exporting compose file to " + exportComposeFile) | |||
return containerHandler.ComposeExport(settingsFile, exportComposeFile) | |||
} | |||
if !compose && cmd.Flags().Changed("compose-file") { |
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 a simple unit test for this case
blocked by not being able to get a test working with |
* add compose export error * add test
Description
Add an error for when --compose-file is used without --compose
🎟 Issue(s)
Related #XXX
🧪 Functional Testing
📸 Screenshots
📋 Checklist
make test
before taking out of draftmake lint
before taking out of draft