<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sat May 18 15:05:45 CDT 2013

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 add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/si/jira.issueviews:issue-xml/NCBC-174/NCBC-174.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[NCBC-174] Fix invalid tests in NUnit project.</title>
                <link>http://www.couchbase.com/issues/browse/NCBC-174</link>
                <project id="10046" key="NCBC">Couchbase .NET client library</project>
                        <description></description>
                <environment></environment>
            <key id="21205">NCBC-174</key>
            <summary>Fix invalid tests in NUnit project.</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="john">John Zablocki</assignee>
                                <reporter username="john">John Zablocki</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Dec 2012 11:47:19 -0600</created>
                <updated>Wed, 8 May 2013 13:40:51 -0500</updated>
                                    <version>1.2 Beta-2</version>
                <version>1.2 Beta-3</version>
                <version>1.2.0</version>
                                <fixVersion>1.2.7</fixVersion>
                                                <votes>0</votes>
                        <watches>1</watches>
                                                                                  <comments>
                    <comment id="48915" author="saakshi.manocha" created="Tue, 29 Jan 2013 11:53:18 -0600"  >I ran the .net unit tests against the latest code of couchbase-net-client and cluster version 2.0.0-1976&lt;br/&gt;
My cluster config comprise of the following nodes:&lt;br/&gt;
10.3.121.134&lt;br/&gt;
10.3.121.135&lt;br/&gt;
10.3.121.136&lt;br/&gt;
10.3.3.206&lt;br/&gt;
&lt;br/&gt;
Some of the tests are failing, mostly are related to views. Please find the observations and their possible causes:&lt;br/&gt;
&lt;br/&gt;
1. CouchbaseAuthenticatedViewTests\When_Bucket_Is_Authenticated_View_Returns_Results :&lt;br/&gt;
&lt;br/&gt;
First the test was failing because there was no document getting created in &amp;quot;authenticated&amp;quot; bucket. Supposedly the code was creating the default client object in method CouchbaseClientFactory.CreateCouchbaseClient(), where the bucket name is default. So I changed it the initialization statement to :&lt;br/&gt;
_client = new CouchbaseClient(&amp;quot;authenticated&amp;quot;,&amp;quot;secret&amp;quot;);&lt;br/&gt;
Again running the test, now the documents are getting created for &amp;quot;authenticated&amp;quot; bucket but no views. Infact the test report is:&lt;br/&gt;
Couchbase.Tests.CouchbaseAuthenticatedViewTests.When_Bucket_Is_Authenticated_View_Returns_Results:&lt;br/&gt;
System.Net.WebException : The remote server returned an error: (404) Not Found.&lt;br/&gt;
&lt;br/&gt;
2. DefaultConfigurationSettingsTests\When_Http_Timeout_Is_Not_Set_And_Using_App_Config_Default_Is_20_Seconds&lt;br/&gt;
and&lt;br/&gt;
DefaultConfigurationSettingsTests\When_Http_Timeout_Is_Not_Set_And_Using_Code_Config_Default_Is_20_Seconds:&lt;br/&gt;
&lt;br/&gt;
Test fails with the error:&lt;br/&gt;
&amp;nbsp;&amp;nbsp;Expected: 00:00:20&lt;br/&gt;
&amp;nbsp;&amp;nbsp;But was:  00:01:00&lt;br/&gt;
Error reason:&lt;br/&gt;
In method Couchbase\Configuration\ServersElement.cs -&amp;gt; HttpRequestTimeout(), the following attribute is set:&lt;br/&gt;
[ConfigurationProperty(&amp;quot;httpRequestTimeout&amp;quot;, IsRequired = false, DefaultValue = &amp;quot;00:01:00&amp;quot;), PositiveTimeSpanValidator]&lt;br/&gt;
DefaultValue set is 00:01:00, in test we compare the result with 00:00:20, hence the failure.&lt;br/&gt;
The DefaultValue in attribute needs to be changed.&lt;br/&gt;
&lt;br/&gt;
3. CouchbaseClusterBucketAdminTests\When_Getting_Cluster_Item_Count_Count_Matches_Interesting_Stats and When_Getting_Bucket_Item_Count_Count_Matches_Basic_Stats:&lt;br/&gt;
Error: System.Net.WebException : The remote server returned an error: (404) Not Found.&lt;br/&gt;
ErrorSource: This test would run find if we provide the username and password for the cluster. The Http response object returns an error because it is not able to connect to the clusterm possibly error in ConfigurationManager.GetSection(configSectionName) which does not return &amp;quot;couchbase&amp;quot; config section&lt;br/&gt;
&lt;br/&gt;
4. CouchbaseClusterBucketAdminTests\When_Creating_New_Bucket_With_Ram_Quota_Less_Than_100_Argument_Exception_Is_Thrown:&lt;br/&gt;
The exception message text was incorrect&lt;br/&gt;
Expected message containing: Quota.RAM&lt;br/&gt;
&amp;nbsp;but was: RamQuotaMB must be at least 100&lt;br/&gt;
Solution is to change the expected message in test attribute&lt;br/&gt;
&lt;br/&gt;
5. CouchbaseClientObserveTests\When_Storing_A_New_Key_With_Master_Persistence_That_Key_Is_In_View_When_Stale_Is_False:&lt;br/&gt;
&lt;br/&gt;
6. CouchbaseClientObserveTests\When_Storing_A_New_Key_Observe_Will_Fail_When_Cluster_Has_Too_Few_Nodes_For_Replication:&lt;br/&gt;
This would run fine if we run on cluster with only one server node.&lt;br/&gt;
</comment>
                    <comment id="48918" author="saakshi.manocha" created="Tue, 29 Jan 2013 12:02:03 -0600"  >Also, many a times &amp;#39;Operation time out&amp;#39; errors occur while running the test. I&amp;#39;m running test over VPN, is there any performance issue?&lt;br/&gt;
This happens generally with GenericView and SpatialView tests.&lt;br/&gt;
Although these tests run fine if debugged separately</comment>
                    <comment id="49723" author="saakshi.manocha" created="Tue, 5 Feb 2013 01:01:02 -0600"  >Following test failures have been fixed: (&lt;a href=&quot;http://review.couchbase.org/#/c/24394/&quot;&gt;http://review.couchbase.org/#/c/24394/&lt;/a&gt;)&lt;br/&gt;
Refer SDKQE-182 to track status.&lt;br/&gt;
&lt;br/&gt;
1. DefaultConfigurationSettingsTests\When_Http_Timeout_Is_Not_Set_And_Using_App_Config_Default_Is_20_Seconds&lt;br/&gt;
&amp;nbsp;&amp;nbsp;and &lt;br/&gt;
2. DefaultConfigurationSettingsTests\When_Http_Timeout_Is_Not_Set_And_Using_Code_Config_Default_Is_20_Seconds:&lt;br/&gt;
Test fails with the error: &lt;br/&gt;
&amp;nbsp;&amp;nbsp;Expected: 00:00:20 &lt;br/&gt;
&amp;nbsp;&amp;nbsp;But was: 00:01:00 &lt;br/&gt;
Fix provided: Recommended http time out is 1 minute so change the test and verify that the test is now passing after this change.&lt;br/&gt;
&amp;nbsp;Change request uploaded in Gerrit and pending for code review. &lt;br/&gt;
&lt;br/&gt;
3. CouchbaseClusterBucketAdminTests\When_Creating_New_Bucket_With_Ram_Quota_Less_Than_100_Argument_Exception_Is_Thrown:&lt;br/&gt;
&amp;nbsp;&amp;nbsp;The exception message text was incorrect &lt;br/&gt;
Expected message containing: Quota.RAM &lt;br/&gt;
&amp;nbsp;but was: RamQuotaMB must be at least 100 &lt;br/&gt;
Fix provided : change the expected message in test attribute and verify that the test is now passing after this change.&lt;br/&gt;
&amp;nbsp;Change request uploaded in Gerrit and pending for code review. &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&lt;br/&gt;
4. DocHelperTests: &lt;br/&gt;
Failure: Expected: String containing &amp;quot;&amp;quot;_id&amp;quot;:&amp;quot;8675309&amp;quot;&amp;quot; &lt;br/&gt;
But was: &amp;quot;{&amp;quot;id&amp;quot;:&amp;quot;8675309&amp;quot;, &amp;quot;message&amp;quot; : &amp;quot;Test&amp;quot; }&amp;quot;\ &lt;br/&gt;
Fix provided is: remove the unnecessary underscore from id and test will pass. Change request uploaded in Gerrit and pending for code review. </comment>
                    <comment id="51936" author="saakshi.manocha" created="Mon, 4 Mar 2013 13:34:16 -0600"  >Few more issues corrected:&lt;br/&gt;
(a) &lt;a href=&quot;http://review.couchbase.org/#/c/24977/&quot;&gt;http://review.couchbase.org/#/c/24977/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.couchbase.com/issues/browse/NCBC-234&quot; title=&quot;ExecuteGetJson does not return CAS value&quot;&gt;&lt;strike&gt;NCBC-234&lt;/strike&gt;&lt;/a&gt;: Return CAS value with ExecuteGetJson&lt;br/&gt;
&lt;br/&gt;
(b) &lt;a href=&quot;http://review.couchbase.org/#/c/24978/&quot;&gt;http://review.couchbase.org/#/c/24978/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.couchbase.com/issues/browse/NCBC-236&quot; title=&quot;JSON serialization tests for view params are broken&quot;&gt;NCBC-236&lt;/a&gt;: Fix view param JSON serialization tests&lt;br/&gt;
</comment>
                    <comment id="52009" author="saakshi.manocha" created="Mon, 4 Mar 2013 23:51:33 -0600"  >More tests added :&lt;br/&gt;
&lt;a href=&quot;http://review.couchbase.org/#/c/24980/&quot;&gt;http://review.couchbase.org/#/c/24980/&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
1. CouchbaseAuthenticatedViewTests -&amp;gt;&lt;br/&gt;
(a) Added new test :&lt;br/&gt;
When_Bucket_Is_Authenticated_And_Bad_Credentials_Are_Provided_Exception_Is_Thrown&lt;br/&gt;
&lt;br/&gt;
2. CouchbaseClientGetTests -&amp;gt; &lt;br/&gt;
(a) Added new tests:&lt;br/&gt;
When_Getting_Multiple_Non_Existent_Keys_Result_Is_Not_Successful&lt;br/&gt;
and When_Getting_A_Zero_Length_Key_No_Exception_Is_Thrown_And_Success_Is_False&lt;br/&gt;
(b) Renamed&lt;br/&gt;
When_Getting_Multiple_Keys_Result_Is_Successful  -&amp;gt; When_Getting_Multiple_Existent_Keys_Result_Is_Successful&lt;br/&gt;
&lt;br/&gt;
3. CouchbaseClientObserveTests -&amp;gt;&lt;br/&gt;
(a) Added new tests:&lt;br/&gt;
When_Storing_A_New_Key_Observe_Will_Succeed_With_Zero_Persistence_And_Zero_Replication&lt;br/&gt;
and&lt;br/&gt;
When_Storing_A_New_Key_Observe_Will_Pass_With_Replication_More_Than_Available_Nodes&lt;br/&gt;
and&lt;br/&gt;
When_Storing_A_New_Key_Observe_Will_Fail_With_Persistence_More_Than_Available_Nodes&lt;br/&gt;
&lt;br/&gt;
4. CouchbaseClientCasTests -&amp;gt;&lt;br/&gt;
(a) Added new tests:&lt;br/&gt;
When_Replacing_Item_With_Valid_Cas_Result_Is_Successful</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Dependency</name>
                                                <inwardlinks description="blocks">
                                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
            <subtask id="23589">NCBC-250</subtask>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>8490</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>