File tree Expand file tree Collapse file tree
camunda-platform-8.10/test/unit/orchestration
camunda-platform-8.9/test/unit/orchestration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,16 +103,17 @@ func TestGoldenConfigmapWithHistoryRetentionEnabled(t *testing.T) {
103103func (s * ConfigmapLegacyTemplateTest ) TestDifferentValuesInputs () {
104104 testCases := []testhelpers.TestCase {
105105 {
106- Name : "TestContainerShouldContainExporterClassPerDefault " ,
106+ Name : "TestExportersShouldBeEmptyByDefault " ,
107107 Values : map [string ]string {},
108108 Verifier : func (t * testing.T , output string , err error ) {
109109 var configmap corev1.ConfigMap
110110 var configmapApplication camunda.OrchestrationApplicationYAML
111111 helm .UnmarshalK8SYaml (s .T (), output , & configmap )
112112 helm .UnmarshalK8SYaml (s .T (), configmap .Data ["application.yaml" ], & configmapApplication )
113113
114- // then
115- s .Require ().Equal ("io.camunda.exporter.CamundaExporter" , configmapApplication .Zeebe .Broker .Exporters .CamundaExporter .ClassName )
114+ // CamundaExporter is auto-registered via autoconfigure-camunda-exporter: true;
115+ // the legacy zeebe.broker.exporters.camundaexporter entry must not be present.
116+ s .Require ().Empty (configmapApplication .Zeebe .Broker .Exporters .CamundaExporter .ClassName )
116117 },
117118 },
118119 }
Original file line number Diff line number Diff line change @@ -103,16 +103,17 @@ func TestGoldenConfigmapWithHistoryRetentionEnabled(t *testing.T) {
103103func (s * ConfigmapLegacyTemplateTest ) TestDifferentValuesInputs () {
104104 testCases := []testhelpers.TestCase {
105105 {
106- Name : "TestContainerShouldContainExporterClassPerDefault " ,
106+ Name : "TestExportersShouldBeEmptyByDefault " ,
107107 Values : map [string ]string {},
108108 Verifier : func (t * testing.T , output string , err error ) {
109109 var configmap corev1.ConfigMap
110110 var configmapApplication camunda.OrchestrationApplicationYAML
111111 helm .UnmarshalK8SYaml (s .T (), output , & configmap )
112112 helm .UnmarshalK8SYaml (s .T (), configmap .Data ["application.yaml" ], & configmapApplication )
113113
114- // then
115- s .Require ().Equal ("io.camunda.exporter.CamundaExporter" , configmapApplication .Zeebe .Broker .Exporters .CamundaExporter .ClassName )
114+ // CamundaExporter is auto-registered via autoconfigure-camunda-exporter: true;
115+ // the legacy zeebe.broker.exporters.camundaexporter entry must not be present.
116+ s .Require ().Empty (configmapApplication .Zeebe .Broker .Exporters .CamundaExporter .ClassName )
116117 },
117118 },
118119 }
You can’t perform that action at this time.
0 commit comments