Following test failures have been fixed: (
http://review.couchbase.org/#/c/24394/)
Refer SDKQE-182 to track status.
1. DefaultConfigurationSettingsTests\When_Http_Timeout_Is_Not_Set_And_Using_App_Config_Default_Is_20_Seconds
and
2. DefaultConfigurationSettingsTests\When_Http_Timeout_Is_Not_Set_And_Using_Code_Config_Default_Is_20_Seconds:
Test fails with the error:
Expected: 00:00:20
But was: 00:01:00
Fix provided: Recommended http time out is 1 minute so change the test and verify that the test is now passing after this change.
Change request uploaded in Gerrit and pending for code review.
3. CouchbaseClusterBucketAdminTests\When_Creating_New_Bucket_With_Ram_Quota_Less_Than_100_Argument_Exception_Is_Thrown:
The exception message text was incorrect
Expected message containing: Quota.RAM
but was: RamQuotaMB must be at least 100
Fix provided : change the expected message in test attribute and verify that the test is now passing after this change.
Change request uploaded in Gerrit and pending for code review.
4. DocHelperTests:
Failure: Expected: String containing ""_id":"8675309""
But was: "{"id":"8675309", "message" : "Test" }"\
Fix provided is: remove the unnecessary underscore from id and test will pass. Change request uploaded in Gerrit and pending for code review.
My cluster config comprise of the following nodes:
10.3.121.134
10.3.121.135
10.3.121.136
10.3.3.206
Some of the tests are failing, mostly are related to views. Please find the observations and their possible causes:
1. CouchbaseAuthenticatedViewTests\When_Bucket_Is_Authenticated_View_Returns_Results :
First the test was failing because there was no document getting created in "authenticated" 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 :
_client = new CouchbaseClient("authenticated","secret");
Again running the test, now the documents are getting created for "authenticated" bucket but no views. Infact the test report is:
Couchbase.Tests.CouchbaseAuthenticatedViewTests.When_Bucket_Is_Authenticated_View_Returns_Results:
System.Net.WebException : The remote server returned an error: (404) Not Found.
2. DefaultConfigurationSettingsTests\When_Http_Timeout_Is_Not_Set_And_Using_App_Config_Default_Is_20_Seconds
and
DefaultConfigurationSettingsTests\When_Http_Timeout_Is_Not_Set_And_Using_Code_Config_Default_Is_20_Seconds:
Test fails with the error:
Expected: 00:00:20
But was: 00:01:00
Error reason:
In method Couchbase\Configuration\ServersElement.cs -> HttpRequestTimeout(), the following attribute is set:
[ConfigurationProperty("httpRequestTimeout", IsRequired = false, DefaultValue = "00:01:00"), PositiveTimeSpanValidator]
DefaultValue set is 00:01:00, in test we compare the result with 00:00:20, hence the failure.
The DefaultValue in attribute needs to be changed.
3. CouchbaseClusterBucketAdminTests\When_Getting_Cluster_Item_Count_Count_Matches_Interesting_Stats and When_Getting_Bucket_Item_Count_Count_Matches_Basic_Stats:
Error: System.Net.WebException : The remote server returned an error: (404) Not Found.
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 "couchbase" config section
4. CouchbaseClusterBucketAdminTests\When_Creating_New_Bucket_With_Ram_Quota_Less_Than_100_Argument_Exception_Is_Thrown:
The exception message text was incorrect
Expected message containing: Quota.RAM
but was: RamQuotaMB must be at least 100
Solution is to change the expected message in test attribute
5. CouchbaseClientObserveTests\When_Storing_A_New_Key_With_Master_Persistence_That_Key_Is_In_View_When_Stale_Is_False:
6. CouchbaseClientObserveTests\When_Storing_A_New_Key_Observe_Will_Fail_When_Cluster_Has_Too_Few_Nodes_For_Replication:
This would run fine if we run on cluster with only one server node.