Skip to content

Commit

Permalink
Remove unnecessary tests. (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
kavics authored Jun 28, 2024
1 parent 05a8780 commit 40374ab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 75 deletions.
3 changes: 1 addition & 2 deletions src/SenseNet.Client.TestsForDocs/Collaboration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,7 @@ await repository.InvokeActionAsync(new OperationRequest
}

/// <tab category="collaboration" article="saved-queries" example="savePrivateQuery" />
//TODO: Causes error if the user profile cannot be created.
// Switch on this on the3 server:
// Switch on this on the server:
// {
// "sensenet": {
// "identityManagement": {
Expand Down
53 changes: 1 addition & 52 deletions src/SenseNet.Client.TestsForDocs/ContentManagement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -832,37 +832,7 @@ await repository.DownloadAsync(
cancel);
Assert.AreEqual("{Key:'Value'}", downloadedText);
}

/// <tab category="content-management" article="upload" example="uploadFileNoChunks" />
[TestMethod]
[Description("Upload whole files instead of chunks")]
public void Docs2_ContentManagement_Upload_WholeFile()
{
/*<doc>*/
// The SenseNet.Client does not implement this feature on the .NET platform..
/*</doc>*/
}

/// <tab category="content-management" article="upload" example="uploadStructure" />
[TestMethod]
[Description("Upload a structure")]
public void Docs2_ContentManagement_Upload_Structure()
{
/*<doc>*/
// The SenseNet.Client does not implement this feature on the .NET platform..
/*</doc>*/
}

/// <tab category="content-management" article="upload" example="uploadResume" />
[TestMethod]
[Description("Interrupted uploads")]
public void Docs2_ContentManagement_Upload_Interrupted()
{
/*<doc>*/
// The SenseNet.Client does not implement this feature on the .NET platform..
/*</doc>*/
}


/* ====================================================================================== Copy or move */

/// <tab category="content-management" article="copy-move" example="copyContent" />
Expand Down Expand Up @@ -1280,27 +1250,6 @@ await repository.InvokeActionAsync(new OperationRequest
content["AllowedChildTypes"] = backup;
await content.SaveAsync(cancel);
}

}

/// <tab category="content-management" article="allowed-childtypes" example="checkAllowedTypes" />
//UNDONE:Docs2: Missing assertion.
[TestMethod]
[Description("Check allowed childtypes")]
public async Task Docs2_ContentManagement_AllowedChildTypes_Check()
{
/*<doc>*/
await repository.InvokeFunctionAsync<string>(new OperationRequest
{
Path = "/Root/Content",
OperationName = "CheckAllowedChildTypesOfFolders"
}, cancel);
/*</doc>*/
/* RAW REQUEST:
GET https://localhost:44362/OData.svc/Root('Content')/CheckAllowedChildTypesOfFolders
*/

// ASSERT
}

/* ====================================================================================== Trash */
Expand Down
5 changes: 3 additions & 2 deletions src/SenseNet.Client.TestsForDocs/Querying.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1112,12 +1112,13 @@ await EnsureContentAsync("/Root/Content/Tasks/Task1", "Task", c =>
}

/// <tab category="querying" article="query-template-parameters" example="chainingProperties" />
//UNDONE:Docs2:- the test is not implemented well: server returns http 500 if the current user's manager is null
//UNDONE:Docs2:- Server returns an error if the current user's manager is null. Issue: Chained template parameters can cause server error. #2136
[TestMethod]
[Description("Templates with properties 2")]
public async Task Docs2_Querying_Template_PropertyChain()
{
Assert.Inconclusive();
Assert.Inconclusive();

/*<doc>*/
var result = await repository.QueryAsync(
new QueryContentRequest { ContentQuery = "TypeIs:Task +CreationDate:<@@CurrentUser.Manager.CreationDate@@" }, cancel);
Expand Down
19 changes: 0 additions & 19 deletions src/SenseNet.Client.TestsForDocs/UsersAndGroups.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,24 +369,5 @@ await repository.InvokeActionAsync(new OperationRequest
}, cancel);
}
}

/// <tab category="users-and-groups" article="memberships" example="workspaceMembers" />
//UNDONE:Docs2: Unnecessary example (?).
[TestMethod]
[Description("Get the list of workspaces where the given user is member")]
public async Task Docs2_UsersAndGroups_GroupMembership_GetWorkspacesOfUser()
{
Assert.Inconclusive();
SnTrace.Test.Write(">>>> ACT");
/*<doc>*/
/*</doc>*/
SnTrace.Test.Write(">>>> ACT END");

//UNDONE: Missing doc and test. REST: GET /OData.svc/Root/Content?query=+Type:Group +Members:{{Id:1163}} .AUTOFILTERS:OFF&$select=Workspace/DisplayName&$expand=Workspace

// ASSERT
Assert.Inconclusive();
}

}
}

0 comments on commit 40374ab

Please sign in to comment.