Skip to content

Commit

Permalink
Reset files back to master
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrougham committed Nov 1, 2021
1 parent 3ca5c58 commit 6f3f9ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .idea/copyright/ALS2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -33,15 +33,16 @@ import spock.util.concurrent.BlockingVariable

class GithubNotificationAgentSpec extends Specification {

@Subject
def github = Mock(GithubService)
@Subject
def agent = new GithubNotificationAgent()

void setup() {
agent.spinnakerUrl = "http://spinnaker.io"
agent.setGithubService(github)
}


@Unroll
def "sets correct status check for #status status in pipeline events"() {
given:
Expand Down Expand Up @@ -108,7 +109,7 @@ class GithubNotificationAgentSpec extends Specification {
then:
actualMessage.get().getDescription() == expectedDescription
actualMessage.get().getTarget_url() == "http://spinnaker.io/#/applications/whatever/executions/details/1?pipeline=foo-pipeline&stage=1"
actualMessage.get().getContext() == "foo-pipeline/stage/second stage"
actualMessage.get().getContext() == "stage/second stage"

where:
status || expectedDescription
Expand Down

0 comments on commit 6f3f9ea

Please sign in to comment.