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
ARTEMIS-2116 Set text message content on producer CLI command #116
Conversation
(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")); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Clebert
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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>
this is merged with the script.. ./scripts/merge-PR.sh 116
git push downstream 2.6.3.jbossorg-x |
(cherry picked from commit d561ca3)
(cherry picked from commit ec91038)
downstream: https://issues.jboss.org/browse/ENTMQBR-1699