Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-16878

Saleforce kamelet return UNAUTHORIZED instead of CREATED

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • Camel-K-GA
    • None
    • Camel-K
    • None
    • False
    • False
    • % %
    • Todo
    • Undefined

    Description

      Test salesforce-source-property-based is failing on step:
      https://github.com/openshift-integration/kamelet-catalog/blob/master/test/salesforce/salesforce-source-property-based.feature#L48
      with error:
      [31mcom.consol.citrus.exceptions.TestCaseFailedException: Validation failed: Values not equal for header element 'citrus_http_reason_phrase', expected 'CREATED' but was 'UNAUTHORIZED'

      stacktrace:

      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1]   Then receive HTTP 201 Created                                                                                                                                                                                                                                                                                                                                                   # org.citrusframework.yaks.http.HttpClientSteps.receiveClientResponse(java.lang.Integer)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1]       com.consol.citrus.exceptions.TestCaseFailedException: Validation failed: Values not equal for header element 'citrus_http_reason_phrase', expected 'CREATED' but was 'UNAUTHORIZED'
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.DefaultTestCase.executeAction(DefaultTestCase.java:144)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.DefaultTestCaseRunner.run(DefaultTestCaseRunner.java:125)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.citrusframework.yaks.http.HttpClientSteps.receiveClientResponse(HttpClientSteps.java:365)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at ✽.receive HTTP 201 Created(classpath:org/citrusframework/yaks/salesforce-source-property-based.feature:48)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] Caused by: com.consol.citrus.exceptions.ValidationException: Validation failed: Values not equal for header element 'citrus_http_reason_phrase', expected 'CREATED' but was 'UNAUTHORIZED'
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.validation.DefaultHeaderValidator.validateHeader(DefaultHeaderValidator.java:79)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.validation.DefaultMessageHeaderValidator.validateMessage(DefaultMessageHeaderValidator.java:101)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.validation.DefaultMessageHeaderValidator.validateMessage(DefaultMessageHeaderValidator.java:44)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.validation.AbstractMessageValidator.validateMessage(AbstractMessageValidator.java:46)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.actions.ReceiveMessageAction.validateMessage(ReceiveMessageAction.java:269)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.actions.ReceiveMessageAction.doExecute(ReceiveMessageAction.java:167)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.actions.AbstractTestAction.execute(AbstractTestAction.java:58)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.DefaultTestCase.executeAction(DefaultTestCase.java:137)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.DefaultTestCaseRunner.run(DefaultTestCaseRunner.java:125)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.citrusframework.yaks.http.HttpClientSteps.receiveClientResponse(HttpClientSteps.java:365)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.citrusframework.yaks.http.HttpClientSteps.receiveClientResponse(HttpClientSteps.java:298)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at java.lang.reflect.Method.invoke(Unknown Source)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.java.Invoker.doInvoke(Invoker.java:66)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.java.Invoker.invoke(Invoker.java:24)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.java.JavaStepDefinition.execute(JavaStepDefinition.java:29)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.core.runner.CoreStepDefinition.execute(CoreStepDefinition.java:66)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.core.runner.PickleStepDefinitionMatch.runStep(PickleStepDefinitionMatch.java:63)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.core.runner.PickleStepTestStep.run(PickleStepTestStep.java:51)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.core.runner.TestCase.run(TestCase.java:104)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.core.runner.Runner.runPickle(Runner.java:71)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:151)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.junit.Cucumber.runChild(Cucumber.java:199)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:234)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] Caused by: java.lang.IllegalArgumentException: Values not equal for header element 'citrus_http_reason_phrase', expected 'CREATED' but was 'UNAUTHORIZED'
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at org.springframework.util.Assert.isTrue(Assert.java:121)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	at com.consol.citrus.validation.DefaultHeaderValidator.validateHeader(DefaultHeaderValidator.java:66)
      [test-salesforce-source-property-based-c3952ogklnm7ujht46m0s4csf test-1] 	... 54 more
      

      Attachments

        Activity

          People

            mmajerni@redhat.com Mario Majernik
            mmajerni@redhat.com Mario Majernik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: