-
Couldn't load subscription status.
- Fork 98
Use floating tag for init of Airflow 3 Dockerfile #1847
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -182,10 +182,6 @@ func (s *AirflowSuite) Test_airflowInitNonEmptyDir() { | |
| defer testUtil.MockUserInput(s.T(), "y")() | ||
| err := airflowInit(cmd, args) | ||
| s.NoError(err) | ||
|
|
||
| b, _ := os.ReadFile(filepath.Join(s.tempDir, "Dockerfile")) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. More non-unit unit testing, this time these fail because now that Airflow 3 is released the default Dockerfile does not contain this string. |
||
| dockerfileContents := string(b) | ||
| s.True(strings.Contains(dockerfileContents, "FROM quay.io/astronomer/astro-runtime:")) | ||
| }) | ||
| } | ||
|
|
||
|
|
@@ -198,10 +194,6 @@ func (s *AirflowSuite) Test_airflowInitNoDefaultImageTag() { | |
|
|
||
| err := airflowInit(cmd, args) | ||
| s.NoError(err) | ||
| // assert contents of Dockerfile | ||
| b, _ := os.ReadFile(filepath.Join(s.tempDir, "Dockerfile")) | ||
| dockerfileContents := string(b) | ||
| s.True(strings.Contains(dockerfileContents, "FROM quay.io/astronomer/astro-runtime:")) | ||
| }) | ||
| } | ||
|
|
||
|
|
@@ -305,10 +297,6 @@ func (s *AirflowSuite) TestAirflowInit() { | |
| os.Stdin = r | ||
| err := airflowInit(cmd, args) | ||
| s.NoError(err) | ||
|
|
||
| b, _ := os.ReadFile(filepath.Join(s.tempDir, "Dockerfile")) | ||
| dockerfileContents := string(b) | ||
| s.True(strings.Contains(dockerfileContents, "FROM quay.io/astronomer/astro-runtime:")) | ||
| }) | ||
|
|
||
| s.Run("invalid project name", func() { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Dropped this file because it seems to be interacting with Docker Hub and so can unreliably fail, and is anyway not really unit testing any of the CLI logic.