File tree Expand file tree Collapse file tree 2 files changed +1
-20
lines changed
test_elasticsearch_serverless/test_server Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,10 @@ docker build \
61
61
62
62
echo -e " --- :docker: :python: Run integration tests for Python $PYTHON_VERSION "
63
63
64
- GITHUB_TOKEN=$( vault read -field=token secret/ci/elastic-elasticsearch-serverless-python/github-token)
65
- export GITHUB_TOKEN
66
-
67
64
docker run \
68
65
-e ELASTICSEARCH_URL \
69
66
-e " ES_API_KEY=$ES_API_SECRET_KEY " \
70
67
-e PYTHON_CONNECTION_CLASS \
71
- -e GITHUB_TOKEN \
72
68
-e AIOHTTP_NO_EXTENSIONS \
73
69
-e FROZENLIST_NO_EXTENSIONS \
74
70
-e YARL_NO_EXTENSIONS \
Original file line number Diff line number Diff line change @@ -532,10 +532,6 @@ def remove_implicit_resolver(cls, tag_to_remove):
532
532
533
533
# Try loading the REST API test specs from the Elastic Artifacts API
534
534
try :
535
- github_token = os .environ .get ("GITHUB_TOKEN" )
536
- if github_token is None :
537
- raise RuntimeError ("GITHUB_TOKEN environment variable is not set" )
538
-
539
535
# Construct the HTTP and Elasticsearch client
540
536
http = urllib3 .PoolManager (retries = 10 )
541
537
client = Elasticsearch (es_url (), api_key = es_api_key (), request_timeout = 3 )
@@ -545,18 +541,7 @@ def remove_implicit_resolver(cls, tag_to_remove):
545
541
)
546
542
547
543
# Download the zip and start reading YAML from the files in memory
548
- package_zip = zipfile .ZipFile (
549
- io .BytesIO (
550
- http .request (
551
- "GET" ,
552
- yaml_tests_url ,
553
- headers = {
554
- "Authorization" : f"Bearer { github_token } " ,
555
- "Accept" : "application/vnd.github+json" ,
556
- },
557
- ).data
558
- )
559
- )
544
+ package_zip = zipfile .ZipFile (io .BytesIO (http .request ("GET" , yaml_tests_url ).data ))
560
545
561
546
for yaml_file in package_zip .namelist ():
562
547
if not re .match (r"^.*\/tests\/.*\.ya?ml$" , yaml_file ):
You can’t perform that action at this time.
0 commit comments