-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore/test modifications for helm (#112)
* Tests modification for Helm support * Changes for fence clients setup * Changes for subprocess.run * Delete gen3-integration-tests/test_data/fence_clients/clients_creds.txt * Delete gen3-integration-tests/test_data/fence_clients/client_rotate_creds.txt * Changes for GAT test_env_namespace * minor fix * minor fix * Changes for guppy support on helm * Guppy data - changed folder structure * Guppy data - Change folder structure * Updated help_setup.sh * guppy path fix
- Loading branch information
1 parent
92f63a8
commit beb7dde
Showing
44 changed files
with
441 additions
and
185 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
...ntegration-tests/test_data/test_setup/guppy_es_indexes/es_indexes_data/configs_alias.json
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,6 @@ | ||
{ | ||
"actions" : [ | ||
{ "remove" : { "index" : "jenkins_configs_1", "alias" : "jenkins_configs_alias" } }, | ||
{ "add" : { "index" : "jenkins_configs_1", "alias" : "jenkins_configs_alias" } } | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
gen3-integration-tests/test_data/test_setup/guppy_es_indexes/es_indexes_data/file_alias.json
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,6 @@ | ||
{ | ||
"actions" : [ | ||
{ "remove" : { "index" : "jenkins_file_1", "alias" : "jenkins_file_alias" } }, | ||
{ "add" : { "index" : "jenkins_file_1", "alias" : "jenkins_file_alias" } } | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
...ntegration-tests/test_data/test_setup/guppy_es_indexes/es_indexes_data/subject_alias.json
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,6 @@ | ||
{ | ||
"actions" : [ | ||
{ "remove" : { "index" : "jenkins_subject_1", "alias" : "jenkins_subject_alias" } }, | ||
{ "add" : { "index" : "jenkins_subject_1", "alias" : "jenkins_subject_alias" } } | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
gen3-integration-tests/test_data/test_setup/guppy_es_indexes/helm_setup.sh
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,17 @@ | ||
#!/bin/bash | ||
# Make sure to run the below command on a seperate window for the curl commands to work | ||
# kubectl port-forward service/gen3-elasticsearch-master 9200:9200 | ||
|
||
# Create jenkins_subject_1 indices | ||
curl -iv -X PUT "localhost:9200/jenkins_subject_1" -H 'Content-Type: application/json' -H 'Accept: application/json' "-d@es_indexes_data/subject_mapping.json" | ||
curl -X POST localhost:9200/_aliases -H 'Content-Type: application/json' -H 'Accept: application/json' "-d@es_indexes_data/subject_alias.json" | ||
curl -H 'Content-Type: application/x-ndjson' "localhost:9200/jenkins_subject_1/subject/_bulk" --data-binary @es_indexes_data/subject_batch.ndjson | ||
|
||
# Create jenkins_file_1 indices | ||
curl -iv -X PUT "localhost:9200/jenkins_file_1" -H 'Content-Type: application/json' -H 'Accept: application/json' "-d@es_indexes_data/file_mapping.json" | ||
curl -X POST localhost:9200/_aliases -H 'Content-Type: application/json' -H 'Accept: application/json' "-d@es_indexes_data/file_alias.json" | ||
curl -H 'Content-Type: application/x-ndjson' "localhost:9200/jenkins_file_1/subject/_bulk" --data-binary @es_indexes_data/file_batch.ndjson | ||
|
||
# Create jenkins_config_1 indices | ||
curl -iv -X PUT "localhost:9200/jenkins_configs_1" -H 'Content-Type: application/json' -H 'Accept: application/json' "-d@es_indexes_data/array_mapping.json" | ||
curl -X POST localhost:9200/_aliases -H 'Content-Type: application/json' -H 'Accept: application/json' "-d@es_indexes_data/configs_alias.json" |
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 |
---|---|---|
|
@@ -104,7 +104,7 @@ def test_submit_record_unauthenticated(self): | |
""" | ||
# Generate an expired token | ||
res = create_access_token( | ||
pytest.namespace, "fence", "1", "[email protected]" | ||
"fence", "1", "[email protected]", test_env_namespace=pytest.namespace | ||
) | ||
|
||
res = res.splitlines()[-1].strip() | ||
|
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
Oops, something went wrong.