-
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.
Merge pull request #38 from gisaia/feat/login
add command login to arlas_cli confs
- Loading branch information
Showing
8 changed files
with
101 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ARLAS_SERVER = "https://cloud.arlas.io/arlas/server" | ||
ARLAS_PERSISTENCE = "https://cloud.arlas.io/arlas/persistence" | ||
CONTENT_TYPE = "Content-Type:application/json;charset=utf-8" | ||
AUTH_TOKEN_URL = "https://cloud.arlas.io/arlas/iam/session" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ if test -f "/tmp/arlas_cli_persist"; then | |
rm -rf /tmp/arlas_cli_persist | ||
fi | ||
|
||
python3.10 -m arlas.cli.cli --config-file /tmp/arlas_cli.yaml --config-file /tmp/arlas_cli.yaml --version | ||
python3.10 -m arlas.cli.cli --config-file /tmp/arlas_cli.yaml --config-file /tmp/arlas_cli.yaml confs \ | ||
python3.10 -m arlas.cli.cli --config-file /tmp/arlas_cli.yaml --version | ||
python3.10 -m arlas.cli.cli --config-file /tmp/arlas_cli.yaml confs \ | ||
create tests \ | ||
--server http://localhost:9999/arlas \ | ||
--persistence http://localhost:9997/arlas_persistence_server \ | ||
|
@@ -19,6 +19,16 @@ python3.10 -m arlas.cli.cli --config-file /tmp/arlas_cli.yaml --config-file /tmp | |
--elastic-headers "Content-Type:application/json" \ | ||
--allow-delete | ||
|
||
# ---------------------------------------------------------- | ||
echo "TEST configuration added with login" | ||
python3.10 -m arlas.cli.cli --config-file /tmp/arlas_cli.yaml confs login [email protected] [email protected] https://some_elastic_search_server --auth-password toto --elastic-password titi | ||
if python3.10 -m arlas.cli.cli --config-file /tmp/arlas_cli.yaml confs list | grep "cloud.arlas.io.support" ; then | ||
echo "OK: configuration found" | ||
else | ||
echo "ERROR: configuration not found" | ||
exit 1 | ||
fi | ||
|
||
# ---------------------------------------------------------- | ||
echo "TEST configuration placed in /tmp/" | ||
FILE=/tmp/arlas_cli.yaml | ||
|