Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-4718

Failed to Validate Errors on ChannelResourseTest

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 7.3
    • 7.3
    • None
    • None

    Description

      Testray

      Jenkins

      Application Log

      Error in Jenkins specific to this ticket.

           [exec] com.liferay.headless.commerce.admin.channel.resource.v1_0.test.ChannelResourceTest > testGraphQLGetChannel STARTED
           [exec] 08:11:45,227 WARN  [http-nio-8080-exec-3][GraphQL:543] Query failed to validate : 'query{channel(channelId:40673){currencyCode,name,type}}'
           [exec] 
           [exec] com.liferay.headless.commerce.admin.channel.resource.v1_0.test.ChannelResourceTest > testGraphQLGetChannel FAILED
           [exec]     java.lang.IllegalArgumentException: Expected starts with '{', but found 'n' in 'null'
           [exec]     	at com.liferay.headless.commerce.admin.channel.client.json.BaseJSONParser._assertStartsWithAndEndsWith(BaseJSONParser.java:259)
           [exec]     	at com.liferay.headless.commerce.admin.channel.client.json.BaseJSONParser.parseToDTO(BaseJSONParser.java:50)
           [exec]     	at com.liferay.headless.commerce.admin.channel.client.serdes.v1_0.ChannelSerDes.toDTO(ChannelSerDes.java:38)
           [exec]     	at com.liferay.headless.commerce.admin.channel.resource.v1_0.test.BaseChannelResourceTestCase.testGraphQLGetChannel(BaseChannelResourceTestCase.java:568)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec]     	at java.lang.Thread.run(Thread.java:745)
      

      Multiple Query Failed to Validate in Application log.

      08:11:21,795 INFO  [Arquillian-Connector-Thread][BundleStartStopLogger:46] STARTED com.liferay.headless.commerce.admin.channel.test_1.0.0 [1329]
      08:11:45,227 WARN  [http-nio-8080-exec-3][GraphQL:543] Query failed to validate : 'query{channel(channelId:40673){currencyCode,name,type}}'
      08:11:46,356 WARN  [http-nio-8080-exec-4][GraphQL:543] Query failed to validate : 'query{channel(channelId:4597948496099763688){currencyCode,name,type}}'
      08:11:47,269 WARN  [http-nio-8080-exec-5][GraphQL:543] Query failed to validate : 'query{channels(pageSize:2,page:1){items{currencyCode,name,type},page,totalCount}}'
      08:11:59,436 INFO  [Arquillian-Connector-Thread][BundleStartStopLogger:49] STOPPED com.liferay.headless.commerce.admin.channel.test_1.0.0 [1329]
      08:12:12,245 INFO  [Arquillian-Connector-Thread][BundleStartStopLogger:46] STARTED com.liferay.headless.commerce.admin.pricing.test_1.0.0 [1330]
      08:12:29,002 WARN  [http-nio-8080-exec-2][GraphQL:543] Query failed to validate : 'query{discountAccountGroup(id:41235){id}}'
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michael.eguina Michael Eguina (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  7.3