Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARTEMIS-2116 Set text message content on producer CLI command #116

Closed

Conversation

franz1981
Copy link
Contributor

(cherry picked from commit d561ca3)
(cherry picked from commit ec91038)

downstream: https://issues.jboss.org/browse/ENTMQBR-1699

@@ -587,6 +587,8 @@ public void testSimpleRun(String folderName) throws Exception {
assertEquals(Integer.valueOf(10), Artemis.internalExecute("consumer", "--break-on-null", "--receive-timeout", "100", "--user", "admin", "--password", "admin"));
assertEquals(Integer.valueOf(10), Artemis.internalExecute("producer", "--message-size", "500", "--message-count", "10", "--user", "admin", "--password", "admin"));
assertEquals(Integer.valueOf(10), Artemis.internalExecute("consumer", "--break-on-null", "--receive-timeout", "100", "--user", "admin", "--password", "admin"));
assertEquals(Integer.valueOf(10), Artemis.internalExecute("producer", "--message", "message", "--message-count", "10", "--user", "admin", "--password", "admin"));
assertEquals(Integer.valueOf(10), Artemis.internalExecute("consumer", "--break-on-null", "--receive-timeout", "100", "--user", "admin", "--password", "admin"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't satisfy QE in my opinion. This method does not validate anything on the body of the message. It partially test that messages have been received, but it does not validate anything related to the body of these messages.

if we were to merge this we would need a new QE task for the product bits.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Clebert

Copy link
Contributor Author

@franz1981 franz1981 Oct 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do we have the other CLI commands validated? I can create a separate commit/PR that would address it in order to satisfy QE needs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If its fine with QE we can raise a task to add better testing in the next sprint. Oleg could possible implement a test

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll create a task

Copy link
Contributor

@feuillemorte feuillemorte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

command:

artemis producer --message-count=10 --destination my

message:

....
   <message id="120" priority="4" expiration="0" timestamp="1539356416943" type="text" user-id="87a6a4ea-ce2f-11e8-a69b-52540023d0d3">                                                                            
      <properties>
         <property name="__AMQ_CID" value="877ab2de-ce2f-11e8-a69b-52540023d0d3" type="simple-string"/>
         <property name="_AMQ_ROUTING_TYPE" value="1" type="byte"/>
         <property name="count" value="9" type="integer"/>
         <property name="ThreadSent" value="Producer ActiveMQQueue[my], thread=0" type="simple-string"/>
      </properties>
      <body>
         <![CDATA[test message: 9]]>
      </body>
   </message>

command:

artemis producer --message-count=10 --destination my --message "Test message body here"
...
   <message id="376" priority="4" expiration="0" timestamp="1539362044479" type="text" user-id="a1ec7dc7-ce3c-11e8-b5ae-52540023d0d3">
      <properties>
         <property name="__AMQ_CID" value="a1c93e4b-ce3c-11e8-b5ae-52540023d0d3" type="simple-string"/>
         <property name="_AMQ_ROUTING_TYPE" value="1" type="byte"/>
         <property name="count" value="9" type="integer"/>
         <property name="ThreadSent" value="Producer ActiveMQQueue[my], thread=0" type="simple-string"/>
      </properties>
      <body>
         <![CDATA[Test message body here]]>
      </body>
   </message>

clebertsuconic added a commit that referenced this pull request Oct 12, 2018
@clebertsuconic
Copy link
Contributor

this is merged with the script..

./scripts/merge-PR.sh 116
git push downstream 2.6.3.jbossorg-x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants