[
https://issues.apache.org/jira/browse/MINIFICPP-2478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Zink reassigned MINIFICPP-2478:
--------------------------------------
Assignee: Martin Zink
> Validators dont support EL
> --------------------------
>
> Key: MINIFICPP-2478
> URL: https://issues.apache.org/jira/browse/MINIFICPP-2478
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Reporter: Martin Zink
> Assignee: Martin Zink
> Priority: Major
>
> e.g.
> this would fail
> {code:cpp}
> TEST_CASE_METHOD(FetchAzureDataLakeStorageTestsFixture, "Number of Retries is
> set", "[azureDataLakeStorageFetch]") {
> plan_->setProperty(azure_data_lake_storage_,
> minifi::azure::processors::FetchAzureDataLakeStorage::NumberOfRetries,
> "${literal(1)}");
> test_controller_.runSession(plan_, true);
>
> REQUIRE(mock_data_lake_storage_client_ptr_->getPassedFetchParams().number_of_retries
> == 1);
> }
> {code}
> with
> {code:cpp}
> EXTENSIONAPI static constexpr auto NumberOfRetries =
> core::PropertyDefinitionBuilder<>::createProperty("Number of Retries")
> .withDescription("The number of automatic retries to perform if the
> download fails.")
> .withPropertyType(core::StandardPropertyTypes::UNSIGNED_LONG_TYPE)
> .withDefaultValue("0")
> .supportsExpressionLanguage(true)
> .build();
> {code}
> but succeed with
> {code:cpp}
> EXTENSIONAPI static constexpr auto NumberOfRetries =
> core::PropertyDefinitionBuilder<>::createProperty("Number of Retries")
> .withDescription("The number of automatic retries to perform if the
> download fails.")
> .withDefaultValue("0")
> .supportsExpressionLanguage(true)
> .build();
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)