<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:19:31 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>[CDRIVER-3960] Convert CRUD v2 spec tests to unified test format</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3960</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>
    &lt;div id=&quot;script-target-wrapper&quot;&gt;
        &lt;br&gt;
        &lt;b&gt;DRIVERS Ticket Description&lt;/b&gt;
        &lt;div id=&quot;lang-script-target&quot;&gt;
            &lt;!-- This block of HTML and the script in it auto-populate the DRIVERS ticket description on page load. --&gt;
            Script Target - If you can read this text, the script has failed
            &lt;script&gt;
                $.get(&apos;https://jira.mongodb.org/browse/DRIVERS-1130&apos;, function(data) {
                    var description = $(data).find(&quot;#description-val&quot;);
                    $(&quot;#lang-script-target&quot;).html(description);
                });
            &lt;/script&gt;
        &lt;/div&gt;
    &lt;/div&gt;
</description>
                <environment></environment>
        <key id="1684409">CDRIVER-3960</key>
            <summary>Convert CRUD v2 spec tests to unified test format</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Tue, 20 Apr 2021 20:07:19 +0000</created>
                <updated>Sat, 28 Oct 2023 11:28:30 +0000</updated>
                            <resolved>Wed, 16 Jun 2021 15:39:32 +0000</resolved>
                                                    <fixVersion>1.18.0</fixVersion>
                                    <component>tests</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3889521" author="xgen-internal-githook" created="Mon, 21 Jun 2021 18:28:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;, &apos;username&apos;: &apos;jmikola&apos;}
&lt;p&gt;Message: CDRIVER-3895: Remove dots/dollars validation for insert/replace docs (#801)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;CDRIVER-3895: Update CRUD, transactions, and unified spec tests&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Also replaces CRUD legacy/v2 tests with unified equivalents for &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3960&quot; title=&quot;Convert CRUD v2 spec tests to unified test format&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3960&quot;&gt;&lt;del&gt;CDRIVER-3960&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Synced with mongodb/specifications@a124e21be89cbfc78606725c6ed1fa00dc992777&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Skip unified CRUD tests related to &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3630&quot; title=&quot;Raise error when hint option is provided on unacknowledged writes against any server version&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3630&quot;&gt;&lt;del&gt;CDRIVER-3630&lt;/del&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Ensure upsertedIds is always present in BulkWriteResult&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Allow array or document for updateOne/Many update arg&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Remove dot/dollar restrictions for insert/replace validation&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This adds top-level key validation to _mongoc_validate_replace, similar to what existed in _mongoc_validate_update.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Remove redundant replace doc validation for legacy updates&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Replacement docs will already be validated by _mongoc_validate_replace before this function is reached.&lt;/p&gt;

&lt;p&gt;This adds logic to ensure &quot;q&quot; and &quot;u&quot; documents are present, similar to what existed in _mongoc_write_command_delete_legacy.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Test success and failure for legacy update code path&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The failure code path is testing that arguments are still validated by mongoc-util.c, despite replacement validation being removed in a previous commit.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Revert &quot;Skip tests with dots and dollars in field names on 5.0+ (#795)&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This reverts commit bd014ee7995420d5d1d2db8a10348f0b24d09090.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Revise bulk and collection tests for allowing dots/dollars&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Empty keys can be used as a reliable BSON validation error, since insert, replace, and update all specify BSON_VALIDATE_EMPTY_KEYS in their vflags. Error message expectations are adjusted accordingly.&lt;/p&gt;

&lt;p&gt;An _id document with a dollar-prefixed key is also used as a reliable server-side validation error.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Allow methods in bulk_op_append to fail so expectError can be evaluated&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Skip unified tests due to schema version and outstanding issues&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Allow entire files to be skipped to preempt schema version errors.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Ensure WC is set on database and collection entities&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: Kevin Albertson &amp;lt;kevin.albertson@10gen.com&amp;gt;&lt;br/&gt;
Branch: r1.18&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/4069b7984d3b089195d4c7ff1fd58c3d6bc2aedc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/4069b7984d3b089195d4c7ff1fd58c3d6bc2aedc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3881481" author="xgen-internal-githook" created="Wed, 16 Jun 2021 15:32:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;, &apos;username&apos;: &apos;jmikola&apos;}
&lt;p&gt;Message: CDRIVER-3895: Remove dots/dollars validation for insert/replace docs (#801)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;CDRIVER-3895: Update CRUD, transactions, and unified spec tests&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Also replaces CRUD legacy/v2 tests with unified equivalents for &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3960&quot; title=&quot;Convert CRUD v2 spec tests to unified test format&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3960&quot;&gt;&lt;del&gt;CDRIVER-3960&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Synced with mongodb/specifications@a124e21be89cbfc78606725c6ed1fa00dc992777&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Skip unified CRUD tests related to &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3630&quot; title=&quot;Raise error when hint option is provided on unacknowledged writes against any server version&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3630&quot;&gt;&lt;del&gt;CDRIVER-3630&lt;/del&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Ensure upsertedIds is always present in BulkWriteResult&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Allow array or document for updateOne/Many update arg&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Remove dot/dollar restrictions for insert/replace validation&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This adds top-level key validation to _mongoc_validate_replace, similar to what existed in _mongoc_validate_update.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Remove redundant replace doc validation for legacy updates&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Replacement docs will already be validated by _mongoc_validate_replace before this function is reached.&lt;/p&gt;

&lt;p&gt;This adds logic to ensure &quot;q&quot; and &quot;u&quot; documents are present, similar to what existed in _mongoc_write_command_delete_legacy.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Test success and failure for legacy update code path&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The failure code path is testing that arguments are still validated by mongoc-util.c, despite replacement validation being removed in a previous commit.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Revert &quot;Skip tests with dots and dollars in field names on 5.0+ (#795)&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This reverts commit bd014ee7995420d5d1d2db8a10348f0b24d09090.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Revise bulk and collection tests for allowing dots/dollars&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Empty keys can be used as a reliable BSON validation error, since insert, replace, and update all specify BSON_VALIDATE_EMPTY_KEYS in their vflags. Error message expectations are adjusted accordingly.&lt;/p&gt;

&lt;p&gt;An _id document with a dollar-prefixed key is also used as a reliable server-side validation error.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Allow methods in bulk_op_append to fail so expectError can be evaluated&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Skip unified tests due to schema version and outstanding issues&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Allow entire files to be skipped to preempt schema version errors.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Ensure WC is set on database and collection entities&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: Kevin Albertson &amp;lt;kevin.albertson@10gen.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/2597f6d4d229f437b3b2cdce0e941a925f24491d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/2597f6d4d229f437b3b2cdce0e941a925f24491d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3862593" author="jmikola@gmail.com" created="Mon, 7 Jun 2021 15:19:09 +0000"  >&lt;p&gt;New tests will be pulled in with CDRIVER-3895.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10620">
                    <name>Issue split</name>
                                                                <inwardlinks description="split from">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-3967</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyqgan:</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>