-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed Tests #66
Comments
Dapplo.Jira.Tests.ProjectTests.TestGetIssueCreatorsAsync
Failed: System.NotSupportedException : Unsupported result type Bitmap & image/png combination. The request to the avatar url seems to work: https://jiraserver/secure/useravatar?ownerId=admin&avatarId=11307 |
Dapplo.Jira.Tests.UserTests.TestSearchUsersAsync Failed: Dapplo.Jira.JiraException : BadRequest(400) Result: {"errorMessages":["Der Abfrageparameter "username" wurde nicht angegeben"],"errors":{}} Dapplo.Jira.Tests.UserTests.TestSearchUsersByQueryAsync https://jiraserver/rest/api/2/user/search/query?query=is assignee of BUG&startAt=0&maxResults=20 Failed: Dapplo.Jira.JiraException : null for uri I'm not sure but I think there it needs to be also called lik: /search?query= |
Dapplo.Jira.Tests.WorkTests.TestWorklogs Request: https://jiraserver/rest/api/2/issue/SDLA-813/worklog Reason so far: We don't use worklogs, but add/update works fine ;-) Note from JIRA Doc: Work logs won't be returned if the Log work field is hidden for the project. |
Dapplo.Jira.Tests.FilterTests.TestCreateAsync Request: https://jiraserver/rest/api/2/filter/my Without the "my" I get a 405 |
Dapplo.Jira.Tests.IssueTests.Test_GetIssue This Test case fails for me at the point: "Assert.True(issue.Fields.TimeTracking.TimeSpentSeconds > 0);" because TimeSpentSeconds = 0 (Time Tracking not enabled in the project) Don't know if the "JiraConfig.ExpandGetIssue" array needs a reset to default after the call? |
Dapplo.Jira.Tests.IssueTests.Test_CreateIssue Fails: System.InvalidOperationException : Sequence contains no matching element Reason: We don't have an IssueType named Bug. Later it will fail for me because I don't have the rights to delete issues. |
The issue with integration tests, is that it's really a lot of work to make them work on a different servers. Still there is a lot of valuable information in your comments.... I will go through them. I don't think I can make all tests so generic so they work everywhere, without making compromises. |
Dapplo.Jira.Tests.IssueTests.Test_Assign Fails: Assert.Equal(issueAssignedToMe.Fields.Assignee, issueBeforeChanges.Fields.Assignee); The user interface (or nearly all classes) miss the IComparable interface? |
Well I need to check if the server information comes over somehow, so I might just check that the length is > 0 |
This is usually the case when there is no converter registered, and I noticed that these tests are depending on other tests to have run before. My bad.... |
This is not something easy to fix, for the tests to go green I need that. Did it give an error? |
I should separate some of the asserts in this unit test, so it gets more clear what is being tested. |
I wanted to see if I can query the rights a uses has, the unit-tests NEED certain rights otherwise your JIRA system would be cluttered with countless issues. Taking another issue type might not give the correct result, as mentioned before there might be different fields. I actually created a specific test user and a test project to run my unit-tests. |
Ok, good to know, will check that out. |
That might be a valuable addition 😊 |
That seems weird, I will need to check this. |
We are running 8.5.3 |
It gives me the error @ But this can also a bug/feature in the api. In the webbrowser I see on the right bar the entries "Zeitverfolgung" and "Zeiterfassung". But on the bottom called "Arbeitsprotokoll" there is nothing. Don't know if this can cause problems in other cases but I don't really need this feature. |
For cloud servers the function is not deprecated: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-filters/#api-rest-api-2-filter-my-get I just added (version pending) a SearchFilterAsync to solve the issue, which is called indirectly by the GetMyFiltersAsync. |
Oh man, yes I think I remember what is the issue here... There is this funny separation between Jira Server & Cloud. For Cloud Atlassian no longer is using usernames... due to GDPR rules. |
* Added SearchFiltersAsync * Added a way to do equals on many entities * Improved testing stability
I start running the test cases on one of our JIRA projects. Here are the results (each post) a test case.
Over all: Is there a way to add a simple call to the TestBase constructor to check for user/pass and avoid all further requests? I normally get blocked when I try to enter the wrong password some times :-)
Failed: Our ServerTitle ends with "Jira" ... but doesn't really needed to check?
The text was updated successfully, but these errors were encountered: