<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:10 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>[GODRIVER-420] integration tests should detect topology from connection, not TOPOLOGY envvar</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-420</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;My local mongodb test environment, which the driver to run tests normally via go tests, fails the Change Stream tests, because I have a replica set running locally, but the test fixtures assume that since the TOPOLOGY envvar isn&apos;t set, that it&apos;s a standalone. &lt;/p&gt;

&lt;p&gt;For some tests its reasonable to rely on the topology argument, but this one is awkward, as it means that my local system always fails. &lt;/p&gt;</description>
                <environment></environment>
        <key id="547757">GODRIVER-420</key>
            <summary>integration tests should detect topology from connection, not TOPOLOGY envvar</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="-1">Unassigned</assignee>
                                    <reporter username="sam.kleinman">Sam Kleinman</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 May 2018 19:14:44 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:35 +0000</updated>
                            <resolved>Tue, 3 Sep 2019 13:28:32 +0000</resolved>
                                    <version>0.0.6</version>
                                    <fixVersion>1.2.0</fixVersion>
                                    <component>Testing</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2405253" author="divjot.arora" created="Tue, 3 Sep 2019 13:28:32 +0000"  >&lt;p&gt;The testing framework implemented in &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-276&quot; title=&quot;Implement a testing framework&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-276&quot;&gt;&lt;del&gt;GODRIVER-276&lt;/del&gt;&lt;/a&gt; auto-detects the topology type for integration tests and allows specifying which topologies a test can run against.&lt;/p&gt;</comment>
                            <comment id="2405247" author="xgen-internal-githook" created="Tue, 3 Sep 2019 13:25:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;divjotarora&apos;, &apos;email&apos;: &apos;divjot.arora@10gen.com&apos;, &apos;name&apos;: &apos;Divjot Arora&apos;}
&lt;p&gt;Message: Implement a testing framework.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Create the mtest framework in mongo/integration/mtest&lt;/li&gt;
	&lt;li&gt;Add helpers to create mock responses&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-276&quot; title=&quot;Implement a testing framework&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-276&quot;&gt;&lt;del&gt;GODRIVER-276&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-420&quot; title=&quot;integration tests should detect topology from connection, not TOPOLOGY envvar&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-420&quot;&gt;&lt;del&gt;GODRIVER-420&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: I314b81e5474feda0457965a869f90989b32ec0ca&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/22646d953d8106e567b1da9aab98b627a2fb204f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/22646d953d8106e567b1da9aab98b627a2fb204f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1898806" author="kris.brandow" created="Tue, 22 May 2018 20:03:03 +0000"  >&lt;p&gt;Another reason to use command line flags and not intuit the topology is that command line flags will prevent caching of test results, which we probably don&apos;t want to cache because it means if we switch topologies that tests won&apos;t be rerun.&lt;/p&gt;</comment>
                            <comment id="1898799" author="kris.brandow" created="Tue, 22 May 2018 19:57:44 +0000"  >&lt;p&gt;The test that&apos;s failing here is because the TOPOLOGY envvar isn&apos;t set to the &lt;tt&gt;replica_set&lt;/tt&gt; the tests think it&apos;s talking to a standalone and that getting a change stream should fail, but it doesn&apos;t, which is why the test fails.&lt;/p&gt;

&lt;p&gt;We need a better test framework, and I would much rather have mandatory command line flags then try and have some tests intuit what type of topology they are communicating with.&lt;/p&gt;</comment>
                            <comment id="1898791" author="jeff.yemin" created="Tue, 22 May 2018 19:52:17 +0000"  >&lt;p&gt;Shouldn&apos;t the test runner skip the test rather than fail it in this scenario?&lt;/p&gt;

&lt;p&gt;I recently implemented auto-cluster-type-detection in the Java driver&apos;s test runner, and that has been saving me a lot of time especially when working on features that require a replica set.   See &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2848&quot; title=&quot;Testing framework should auto-detect the correct connection string if none is provided&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2848&quot;&gt;&lt;del&gt;JAVA-2848&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="507484">GODRIVER-276</issuekey>
        </issuelink>
                            </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>GODRIVER-251</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htppy7:</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>