Commit 4b781ce0 authored by Aman Verma's avatar Aman Verma
Browse files

using system endpoint in bootstrapping

parent 682e68f2
Pipeline #62523 failed with stages
in 42 seconds
......@@ -91,7 +91,7 @@ class DeploySharedSchemas:
return kind
def __register_one(self, kind, schema, messages):
method = 'POST'
method = 'PUT'
try_it = 'Try {} for id: {}'
print(try_it.format(method, kind))
response = requests.request(method, self.url, headers=self.headers, data=schema)
......
......@@ -15,7 +15,7 @@ fi
pip3 install -r $AWS_DEPLOYMENTS_SUBDIR/requirements.txt
echo $AWS_BASE_URL
export AWS_SCHEMA_SERVICE_URL=$AWS_BASE_URL/api/schema-service/v1/schema
export AWS_SCHEMA_SERVICE_URL=$AWS_BASE_URL/api/schema-service/v1/schemas/system
if [ -z "$BEARER_TOKEN" ];
then BEARER_TOKEN=`python3 $AWS_DEPLOYMENTS_SUBDIR/Token.py`;
......
export AZURE_SCHEMA_URL=https://$AZURE_DNS_NAME/api/schema-service/v1/schema
export AZURE_SCHEMA_URL=https://$AZURE_DNS_NAME/api/schema-service/v1/schemas/system
BEARER_TOKEN=`python $AZURE_DEPLOYMENTS_SUBDIR/Token.py`
export BEARER_TOKEN=$BEARER_TOKEN
......
curl -X DELETE -u $IBM_QA_DB_USER:$IBM_QA_DB_PASSWORD $IBM_QA_DB_URL/oc-cpd-dataecosystem-opendes-schema2
export IBM_SCHEMA_URL=$IBM_SCHEMA_HOST/api/schema-service/v1/schema
export IBM_SCHEMA_URL=$IBM_SCHEMA_HOST/api/schema-service/v1/schemas/system
BEARER_TOKEN=`python $IBM_DEPLOYMENTS_SUBDIR/Token.py`
export BEARER_TOKEN=$BEARER_TOKEN
echo $BEARER_TOKEN
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment