<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:06:01 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-2470] test_util for matching exceptions should produce clearer explanation</title>
                <link>https://jira.mongodb.org/browse/CXX-2470</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Our current Catch2 helper for matching against an expected exception message produces this output on failure:&lt;/p&gt;

&lt;p&gt;with expansion:&lt;br/&gt;
  Failed to resolve doesnotexist.invalid: generic server error mongocxx::&lt;br/&gt;
  exception contains message: &quot;parse error&quot;&lt;/p&gt;

&lt;p&gt;While certainly useful, it is misleading: the exception does NOT contain the message &quot;parse error&quot;. Instead, that is the message it was /expected/ to contain:&lt;/p&gt;

&lt;p&gt;std::string describe() const override &lt;/p&gt;
{
 return std::string(&quot;mongocxx::exception contains message: \&quot;&quot;) + expected_msg + &quot;\&quot;&quot;;
}

&lt;p&gt;If the reader of the test message trusts the explanation, this can cause some real head-scratching.&lt;/p&gt;

&lt;p&gt;This should be corrected so that the intent and output match, something like:&lt;/p&gt;

&lt;p&gt;exception was expected to contain: &quot;parse error&quot;&lt;/p&gt;
</description>
                <environment></environment>
        <key id="2004017">CXX-2470</key>
            <summary>test_util for matching exceptions should produce clearer explanation</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="jesse.williamson@mongodb.com">Jesse Williamson</assignee>
                                    <reporter username="jesse.williamson@mongodb.com">Jesse Williamson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Mar 2022 18:28:10 +0000</created>
                <updated>Sat, 28 Oct 2023 11:26:46 +0000</updated>
                            <resolved>Tue, 22 Mar 2022 21:32:06 +0000</resolved>
                                                    <fixVersion>3.7.0</fixVersion>
                                    <component>Testing</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4425338" author="JIRAUSER1261121" created="Mon, 21 Mar 2022 21:33:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/850&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/850&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i06p1g:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>