Restructured authmiddleware fn and added tests (#2410)
* Created separate file for authmiddleware fn * Optimize auth login and middleware * Added unittests for authmiddleware * Fixed authURL * Removed featureConfig as global variable * Fix integration test according to examples repo changes * Fix integration test path for go module-example Co-authored-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
co-authored by
Sanket Sudake
parent
b98538ba24
commit
90c479b23c
@@ -27,7 +27,7 @@ env=go-$TEST_ID
|
||||
fn_poolmgr=hello-go-poolmgr-$TEST_ID
|
||||
fn_nd=hello-go-nd-$TEST_ID
|
||||
|
||||
cd $ROOT/examples/go
|
||||
cd $ROOT/examples/go/hello-world
|
||||
|
||||
log "Creating environment for Golang"
|
||||
fission env create --name $env --image $GO_RUNTIME_IMAGE --builder $GO_BUILDER_IMAGE --period 5
|
||||
@@ -58,7 +58,7 @@ log "Testing new deployment function"
|
||||
timeout 60 bash -c "test_fn $fn_nd 'Hello'"
|
||||
|
||||
# Create zip file without top level directory (module-example)
|
||||
cd module-example && zip -r $tmp_dir/module.zip *
|
||||
cd ../module-example && zip -r $tmp_dir/module.zip *
|
||||
|
||||
pkgName=$(generate_test_id)
|
||||
fission package create --name $pkgName --src $tmp_dir/module.zip --env $env
|
||||
|
||||
@@ -27,7 +27,7 @@ else
|
||||
log "TEST_NOCLEANUP is set; not cleaning up test artifacts afterwards."
|
||||
fi
|
||||
|
||||
cd $ROOT/examples/jvm/java
|
||||
cd $ROOT/examples/java/hello-world
|
||||
|
||||
log "Creating zip from source code"
|
||||
zip -r $tmp_dir/java-src-pkg.zip *
|
||||
|
||||
@@ -27,7 +27,7 @@ env=ts-$TEST_ID
|
||||
fn_poolmgr=hello-ts-poolmgr-$TEST_ID
|
||||
fn_nd=hello-ts-nd-$TEST_ID
|
||||
|
||||
cd $ROOT/examples/tensorflow-serving
|
||||
cd $ROOT/examples/miscellaneous/tensorflow-serving
|
||||
|
||||
log "Creating environment for Tensorflow Serving"
|
||||
fission env create --name $env --image $TS_RUNTIME_IMAGE --version 2 --period 5
|
||||
|
||||
Reference in New Issue
Block a user