Running the Smoke Test > Smoke Test Step 2. Validate Configuration
Smoke Test Step 2. Validate Configuration
The first step of the smoke test is to validate the configuration file of the Azure IoT Hub Connector. The steps of this validation are as follows:
1. Load and parse the Connector configuration file specified by the Java system property, -Dconfig.file=<pathToConfigFile>.
The smoke test tool parses the configuration settings from the Java system property, -Dconfig.file=<pathToConfigFile>, connect to the ThingWorx Platform, and call AzureServices::GetConfiguration to get the Azure IoT Hub and Azure Storage Container configuration from their Things and validate the values.
Property
Description
Hub's consumerConnectionString
Verifies that the consumer policy connection string is not empty on the AzureIotHub Thing.
Hub Thing Name
Verifies that the Hub Thing Name is configured in the configuration file for the Azure IoT Hub Connector.
Device Export Blob Connection String
Verifies that the device export blob connection string is retrieved and not empty for the Azure Sotrage Container (blob) configured for this service.
Azure File Repository Blob Connection String
Verifies that the file repository blob connection string is retrieved and not empty for the AzureBlobStorageTemplate Thing configured for this service.
Connection Services Hub Thing Name
Verifies that the Connection Services Hub Thing Name is specified in the configuration file for the Connector.
transport.websockets.app-key
Verifies that an application key for authenticating with ThingWorx Platform. is configured for the Connector.
transport.websockets.platforms
Verifies that the URL for connecting to ThingWorx Platform is configured for the Connector.
2. Validate that all required configuration settings are present.
If this test throws an exception, refer to Troubleshooting the Smoke Test. If this test passes, the next test in the sequence, Smoke Test Step 3. Validate Connection Services Hub, runs.