mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ACS-2566 Configure Solr shared secret authentication
* ACS-2566 Configure Solr shared secret * Fix emoji in README.md
This commit is contained in:
@@ -20,7 +20,7 @@ Back to [TAS Master Documentation](https://git.alfresco.com/tas/alfresco-tas-uti
|
|||||||
* [Configuration](#configuration)
|
* [Configuration](#configuration)
|
||||||
* [How to enable Test Rail Integration?](#how-to-enable-test-rail-integration)
|
* [How to enable Test Rail Integration?](#how-to-enable-test-rail-integration)
|
||||||
* [Reference](#reference)
|
* [Reference](#reference)
|
||||||
* [Change Log](docs/CHANGELOG.md) :glowing_star:
|
* [Change Log](docs/CHANGELOG.md) 🌟
|
||||||
* [Contributors](#contributors)
|
* [Contributors](#contributors)
|
||||||
* [Releasing](#releasing)
|
* [Releasing](#releasing)
|
||||||
* [License](#license)
|
* [License](#license)
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
<suiteXmlFile>src/main/resources/shared-resources/testCount.xml</suiteXmlFile>
|
<suiteXmlFile>src/main/resources/shared-resources/testCount.xml</suiteXmlFile>
|
||||||
<maven.build.sourceVersion>11</maven.build.sourceVersion>
|
<maven.build.sourceVersion>11</maven.build.sourceVersion>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<tas.utility.version>3.0.47</tas.utility.version>
|
<tas.utility.version>3.0.48</tas.utility.version>
|
||||||
<rest-assured.version>3.3.0</rest-assured.version>
|
<rest-assured.version>3.3.0</rest-assured.version>
|
||||||
<httpclient-osgi-version>4.5.3</httpclient-osgi-version>
|
<httpclient-osgi-version>4.5.3</httpclient-osgi-version>
|
||||||
<json-path.version>3.3.0</json-path.version>
|
<json-path.version>3.3.0</json-path.version>
|
||||||
|
@@ -1129,6 +1129,20 @@ public class RestWrapper extends DSLWrapper<RestWrapper>
|
|||||||
this.serverURI = restProperties.envProperty().getSolrServerUrl();
|
this.serverURI = restProperties.envProperty().getSolrServerUrl();
|
||||||
this.serverPort = restProperties.envProperty().getSolrPort();
|
this.serverPort = restProperties.envProperty().getSolrPort();
|
||||||
configureServerEndpoint();
|
configureServerEndpoint();
|
||||||
|
configureSecretHeader();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds the secret Solr header if it has been set
|
||||||
|
*/
|
||||||
|
private void configureSecretHeader()
|
||||||
|
{
|
||||||
|
String solrSecret = restProperties.envProperty().getSolrSecret();
|
||||||
|
if(!solrSecret.isEmpty())
|
||||||
|
{
|
||||||
|
String solrSecretName = restProperties.envProperty().getSolrSecretName();
|
||||||
|
configureRequestSpec().addHeader(solrSecretName, solrSecret);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user