Replace flag text with const (#1391)

This commit is contained in:
Ta-Ching Chen
2019-11-09 22:13:35 +08:00
committed by GitHub
parent 6f5f6900b6
commit d3d8ff6c1b
73 changed files with 867 additions and 926 deletions
+5 -5
View File
@@ -36,7 +36,7 @@ create_archive() {
create_package() {
log "Creating package"
pkg=$(fission package create --deploy "$tmp_dir/test-deploy-pkg.zip" --env $env| cut -f2 -d' '| tr -d \')
fission package create --name $1 --deploy "$tmp_dir/test-deploy-pkg.zip" --env $env
}
delete_package() {
@@ -74,14 +74,14 @@ main() {
log "created archive test-deploy-pkg.zip"
# create packages with the huge archive
create_package
pkg_1=$pkg
pkg_1=$(generate_test_id)
create_package $pkg_1
get_archive_url_from_package $pkg_1
url_1=$url
log "pkg: $pkg_1, archive_url : $url_1"
create_package
pkg_2=$pkg
pkg_2=$(generate_test_id)
create_package $pkg_2
get_archive_url_from_package $pkg_2
url_2=$url
log "pkg: $pkg_2, archive_url : $url_2"