forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove userInfo from Conda environment lists (apache#714)
* drop user info when ingesting conda list explicit uris * add test * special taste of scala * more test * fix test * more docs * 1 more docs
- Loading branch information
1 parent
73ce892
commit 386e92f
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,17 @@ class CondaEnvironmentManagerTest extends org.apache.spark.SparkFunSuite with Te | |
"via spark.conda.bootstrapPackageUrlsUserInfo.") | ||
.equals(thrown.getMessage)) | ||
} | ||
|
||
test("CondaEnvironmentManager.dropUserInfo") { | ||
val packageUrl = "https://x-5.bar/linux-64/package-0.0.1-py_0.tar.bz2" | ||
assert(CondaEnvironmentManager.dropUserInfo(packageUrl) == packageUrl) | ||
assert(CondaEnvironmentManager.dropUserInfo( | ||
"https://a:[email protected]/linux-64/package-0.0.1-py_0.tar.bz2") == packageUrl) | ||
assert(CondaEnvironmentManager.dropUserInfo( | ||
"https://:[email protected]/linux-64/package-0.0.1-py_0.tar.bz2") == packageUrl) | ||
assert(CondaEnvironmentManager.dropUserInfo( | ||
"https://a:<password>@x-5.bar/linux-64/package-0.0.1-py_0.tar.bz2") == packageUrl) | ||
assert(CondaEnvironmentManager.dropUserInfo( | ||
"https://:Bearer [email protected]/linux-64/package-0.0.1-py_0.tar.bz2") == packageUrl) | ||
} | ||
} |