Fix typo occurring in various places: pushHock -> pushHook
This commit is contained in:
parent
a352ca7254
commit
cc60094865
|
@ -55,8 +55,8 @@ public class GitLabRule implements TestRule {
|
|||
public String createProject(ProjectRequest request) {
|
||||
Project project = client.createProject(request.getName());
|
||||
projectIds.add(project.getId().toString());
|
||||
if (request.getWebHookUrl() != null && (request.isPushHock() || request.isMergeRequestHook())) {
|
||||
client.addProjectHook(project.getId().toString(), request.getWebHookUrl(), request.isPushHock(), request.isMergeRequestHook());
|
||||
if (request.getWebHookUrl() != null && (request.isPushHook() || request.isMergeRequestHook())) {
|
||||
client.addProjectHook(project.getId().toString(), request.getWebHookUrl(), request.isPushHook(), request.isMergeRequestHook());
|
||||
}
|
||||
return project.getHttpUrlToRepo();
|
||||
}
|
||||
|
|
|
@ -9,14 +9,14 @@ public class ProjectRequest {
|
|||
|
||||
private final String name;
|
||||
private final String webHookUrl;
|
||||
private final boolean pushHock;
|
||||
private final boolean pushHook;
|
||||
private final boolean mergeRequestHook;
|
||||
|
||||
@GeneratePojoBuilder(intoPackage = "*.builder.generated", withFactoryMethod = "*")
|
||||
public ProjectRequest(String name, String webHookUrl, boolean pushHock, boolean mergeRequestHook) {
|
||||
public ProjectRequest(String name, String webHookUrl, boolean pushHook, boolean mergeRequestHook) {
|
||||
this.name = name;
|
||||
this.webHookUrl = webHookUrl;
|
||||
this.pushHock = pushHock;
|
||||
this.pushHook = pushHook;
|
||||
this.mergeRequestHook = mergeRequestHook;
|
||||
}
|
||||
|
||||
|
@ -28,8 +28,8 @@ public class ProjectRequest {
|
|||
return webHookUrl;
|
||||
}
|
||||
|
||||
public boolean isPushHock() {
|
||||
return pushHock;
|
||||
public boolean isPushHook() {
|
||||
return pushHook;
|
||||
}
|
||||
|
||||
public boolean isMergeRequestHook() {
|
||||
|
|
|
@ -50,7 +50,7 @@ public class GitLabIT {
|
|||
String httpUrl = gitlab.createProject(projectRequest()
|
||||
.withName("test")
|
||||
.withWebHookUrl("http://" + getDocker0Ip() + ":" + jenkins.getURL().getPort() + "/jenkins/project/test")
|
||||
.withPushHock(true)
|
||||
.withPushHook(true)
|
||||
.build());
|
||||
|
||||
final OneShotEvent buildTriggered = new OneShotEvent();
|
||||
|
|
Loading…
Reference in New Issue