Skip to content

Commit f5bfad5

Browse files
committed
Added integration test to handle "Any()" version requirement.
1 parent e58571d commit f5bfad5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/integration/buildscript_int_test.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,30 @@ main = wheel
159159
suite.Contains(files, "sample_activestate-1.0.0.dist-info/WHEEL")
160160
}
161161

162+
func (suite *BuildScriptIntegrationTestSuite) TestBuildScriptRequirementVersionAny() {
163+
suite.OnlyRunForTags(tagsuite.BuildScripts)
164+
ts := e2e.New(suite.T(), false)
165+
defer ts.Close()
166+
167+
cp := ts.Spawn("config", "set", constants.AsyncRuntimeConfig, "true")
168+
cp.ExpectExitCode(0)
169+
170+
// Enable as part of DX-3230.
171+
//cp = ts.Spawn("config", "set", constants.OptinBuildscriptsConfig, "true")
172+
//cp.ExpectExitCode(0)
173+
174+
// This project's build expression has a requirement whose version is the "Any()" function.
175+
// Make sure we can successfully checkout and modify this project.
176+
// Previously, no version would be given for such a requirement.
177+
cp = ts.Spawn("checkout", "ActiveState/python3-MacOS#b6aac9cf-a758-42d6-9574-78ec513ad8e9", ".")
178+
cp.Expect("Checked out project")
179+
cp.ExpectExitCode(0)
180+
181+
cp = ts.Spawn("install", "dotenv")
182+
cp.Expect("Added: language/python/dotenv@Auto")
183+
cp.ExpectExitCode(0)
184+
}
185+
162186
func TestBuildScriptIntegrationTestSuite(t *testing.T) {
163187
suite.Run(t, new(BuildScriptIntegrationTestSuite))
164188
}

0 commit comments

Comments
 (0)