Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
georgii-borovinskikh-sonarsource committed Nov 22, 2023
1 parent 7bfd50d commit 7983cdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public async Task TransitionIssue_FailedToTransition()
result.Should().Be(SonarQubeIssueTransitionResult.FailedToTransition);
messageHandler.VerifyAll();
logger.ErrorMessages.Should().Contain("POST api/issues/do_transition request failed.");
logger.DebugMessages.Should().HaveCount(1);
logger.DebugMessages.Should().HaveCountGreaterThan(0);
}

[TestMethod]
Expand Down Expand Up @@ -91,7 +91,7 @@ public async Task TransitionIssue_CommentAdditionFailed()
result.Should().Be(SonarQubeIssueTransitionResult.CommentAdditionFailed);
messageHandler.VerifyAll();
logger.ErrorMessages.Should().Contain("POST api/issues/add_comment request failed.");
logger.DebugMessages.Should().HaveCount(1);
logger.DebugMessages.Should().HaveCountGreaterThan(0);
}

[TestMethod]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public class TransitionIssueRequestWithWontFix : RequestBase<SonarQubeIssueTrans
protected override string Path => "api/issues/do_transition";
protected override HttpMethod HttpMethod => HttpMethod.Post;

[JsonProperty("transition")]
public string TransitionString => Transition.TransitionToLowerCaseString();

[JsonProperty("issue")]
public string IssueKey { get; set; }

[JsonProperty("transition")]
public string TransitionString => Transition.TransitionToLowerCaseString();

[JsonIgnore]
public SonarQubeIssueTransition Transition { get; set; }
Expand Down

0 comments on commit 7983cdf

Please sign in to comment.