Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

feat: Add fields for Pub/Sub triggers #457

Merged
merged 1 commit into from Apr 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -51,6 +51,7 @@
import com.google.cloudbuild.v1.ListBuildsResponse;
import com.google.cloudbuild.v1.ListWorkerPoolsRequest;
import com.google.cloudbuild.v1.ListWorkerPoolsResponse;
import com.google.cloudbuild.v1.PubsubConfig;
import com.google.cloudbuild.v1.ReceiveTriggerWebhookRequest;
import com.google.cloudbuild.v1.ReceiveTriggerWebhookResponse;
import com.google.cloudbuild.v1.RepoSource;
Expand Down Expand Up @@ -461,11 +462,13 @@ public void createBuildTriggerTest() throws Exception {
.addAllTags(new ArrayList<String>())
.setTriggerTemplate(RepoSource.newBuilder().build())
.setGithub(GitHubEventsConfig.newBuilder().build())
.setPubsubConfig(PubsubConfig.newBuilder().build())
.setCreateTime(Timestamp.newBuilder().build())
.setDisabled(true)
.putAllSubstitutions(new HashMap<String, String>())
.addAllIgnoredFiles(new ArrayList<String>())
.addAllIncludedFiles(new ArrayList<String>())
.setFilter("filter-1274492040")
.build();
mockCloudBuild.addResponse(expectedResponse);

Expand Down Expand Up @@ -512,11 +515,13 @@ public void getBuildTriggerTest() throws Exception {
.addAllTags(new ArrayList<String>())
.setTriggerTemplate(RepoSource.newBuilder().build())
.setGithub(GitHubEventsConfig.newBuilder().build())
.setPubsubConfig(PubsubConfig.newBuilder().build())
.setCreateTime(Timestamp.newBuilder().build())
.setDisabled(true)
.putAllSubstitutions(new HashMap<String, String>())
.addAllIgnoredFiles(new ArrayList<String>())
.addAllIncludedFiles(new ArrayList<String>())
.setFilter("filter-1274492040")
.build();
mockCloudBuild.addResponse(expectedResponse);

Expand Down Expand Up @@ -644,11 +649,13 @@ public void updateBuildTriggerTest() throws Exception {
.addAllTags(new ArrayList<String>())
.setTriggerTemplate(RepoSource.newBuilder().build())
.setGithub(GitHubEventsConfig.newBuilder().build())
.setPubsubConfig(PubsubConfig.newBuilder().build())
.setCreateTime(Timestamp.newBuilder().build())
.setDisabled(true)
.putAllSubstitutions(new HashMap<String, String>())
.addAllIgnoredFiles(new ArrayList<String>())
.addAllIncludedFiles(new ArrayList<String>())
.setFilter("filter-1274492040")
.build();
mockCloudBuild.addResponse(expectedResponse);

Expand Down