use of com.checkmarx.flow.dto.gitlab.Project in project cx-flow by checkmarx-ltd.
the class GitlabServiceMocker method sendPushEvent.
@Override
public void sendPushEvent() {
PushEvent pushEvent = new PushEvent();
pushEvent.setCommits(new LinkedList<>());
Repository repo = new Repository();
repo.setName(gitlabProjectName);
pushEvent.setRepository(repo);
pushEvent.setRef("refs/head/" + branchName);
Project project = new Project();
project.setGitHttpUrl(gitUrl);
project.setNamespace(GITLAB_USER);
project.setName(gitlabProjectName);
pushEvent.setProject(project);
ControllerRequest request = ControllerRequest.builder().application(gitlabProjectName).branch(Collections.singletonList(branchName)).project(cxProjectName).team(cxTeam).assignee("").preset("default").build();
gitlabControllerSpy.pushRequest(pushEvent, "SIGNATURE", "CX", request);
}
Aggregations