<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:23:40 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>[DRIVERS-1593] Test operations may be an empty array</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-1593</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;While working on &lt;a href=&quot;https://github.com/mongodb/specifications/pull/925&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/specifications#925&lt;/a&gt; I realized a discrepancy between the spec and JSON schema.&lt;/p&gt;

&lt;p&gt;In the spec, &lt;tt&gt;tests[].operations&lt;/tt&gt; is documented as a &quot;required array of one or more operation objects&quot;; however, the schema does not specify &lt;tt&gt;minItems: 1&lt;/tt&gt; for that field.&lt;/p&gt;

&lt;p&gt;Other documentation for &lt;tt&gt;withTransaction&lt;/tt&gt; and &lt;tt&gt;loop&lt;/tt&gt; operations (both of which solicit &lt;tt&gt;operations&lt;/tt&gt; arrays) does not prohibit empty arrays. I&apos;ll note that operations are not covered by the JSON schema, so there was no change for discrepancy either way.&lt;/p&gt;

&lt;p&gt;I often use empty &lt;tt&gt;tests[].operations&lt;/tt&gt; arrays when writing &quot;valid-fail&quot; tests, particularly when focused on another aspect of the test format (e.g. entity definitions). I propose that we stick with the JSON schema and simply remove &quot;one or more&quot; from the spec text. Additionally, I would add a &quot;valid-pass&quot; test to assert that a test case with an empty &lt;tt&gt;operations&lt;/tt&gt; array passes. That should catch any drivers that may have been requiring a non-empty array based on the original spec language.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1640518">DRIVERS-1593</key>
            <summary>Test operations may be an empty array</summary>
                <type id="14901" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14700&amp;avatarType=issuetype">Spec Change</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 Mar 2021 04:29:10 +0000</created>
                <updated>Thu, 31 Mar 2022 14:24:26 +0000</updated>
                                                                <component>Unified Test Runner</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3664760" author="alexander.golin" created="Mon, 15 Mar 2021 16:57:00 +0000"  >&lt;p&gt;Triage: placing in the backlog for future prioritization. &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_10951" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Driver Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10748"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hyjcqv:</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>