-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use internal snapshot repository for OSS snapshot packages [DI-154][5…
….5.z] (#209) Backport of #207 - Use internal snapshot maven repository for getting OSS snapshot distribution zip - Do not produce brew packages for OSS snapshot as it would expose password-protected urls Fixes https://hazelcast.atlassian.net/browse/DI-154 Implemented similar like hazelcast-docker: hazelcast/hazelcast-docker#774
- Loading branch information
1 parent
4aa58a1
commit db5555b
Showing
10 changed files
with
115 additions
and
19 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,32 @@ assert_should_build_ee "pull_request" "ALL" "yes" | |
assert_should_build_ee "pull_request" "OSS" "yes" | ||
assert_should_build_ee "pull_request" "EE" "yes" | ||
|
||
function assert_get_hz_dist_tar_gz { | ||
local hz_version=$1 | ||
local distribution=$2 | ||
local expected_url=$3 | ||
local actual_url=$(get_hz_dist_tar_gz "$hz_version" "$distribution") | ||
assert_eq "$expected_url" "$actual_url" "Expected URL for version \"$hz_version\", distribution \"$distribution\"" || TESTS_RESULT=$? | ||
} | ||
|
||
log_header "Tests for get_hz_dist_tar_gz" | ||
export HZ_SNAPSHOT_INTERNAL_USERNAME=dummy_user | ||
export HZ_SNAPSHOT_INTERNAL_PASSWORD=dummy_password | ||
assert_get_hz_dist_tar_gz 5.4.0 hazelcast https://repo1.maven.org/maven2/com/hazelcast/hazelcast-distribution/5.4.0/hazelcast-distribution-5.4.0.tar.gz | ||
assert_get_hz_dist_tar_gz 5.5.0-SNAPSHOT hazelcast https://dummy_user:[email protected]/snapshot-internal/com/hazelcast/hazelcast-distribution/5.5.0-SNAPSHOT/hazelcast-distribution-5.5.0-SNAPSHOT.tar.gz | ||
|
||
assert_get_hz_dist_tar_gz 5.4.0 hazelcast-enterprise https://repository.hazelcast.com/release/com/hazelcast/hazelcast-enterprise-distribution/5.4.0/hazelcast-enterprise-distribution-5.4.0.tar.gz | ||
assert_get_hz_dist_tar_gz 5.5.0-SNAPSHOT hazelcast-enterprise https://repository.hazelcast.com/snapshot/com/hazelcast/hazelcast-enterprise-distribution/5.5.0-SNAPSHOT/hazelcast-enterprise-distribution-5.5.0-SNAPSHOT.tar.gz | ||
|
||
function assert_url_contains_password { | ||
local url=$1 | ||
local password=$2 | ||
local expected_result=$3 | ||
local actual=$(url_contains_password "$url" "$password") | ||
assert_eq "$expected_result" "$actual" "Url '$url' should$( [ "$expected_result" = "no" ] && echo " NOT") contain $password" || TESTS_RESULT=$? | ||
} | ||
|
||
assert_url_contains_password "https://dummy_user:[email protected]/snapshot-internal/com/hazelcast/hazelcast-distribution/5.5.0-SNAPSHOT/hazelcast-distribution-5.5.0-SNAPSHOT.tar.gz" "dummy_password" "yes" | ||
assert_url_contains_password "https://repo1.maven.org/maven2/com/hazelcast/hazelcast-distribution/5.4.0/hazelcast-distribution-5.4.0.tar.gz" "dummy_password" "no" | ||
|
||
assert_eq 0 "$TESTS_RESULT" "ALL tests should pass" |
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
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
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