Skip to content

Commit 4259123

Browse files
committed
fixed test issue
1 parent 8f28455 commit 4259123

File tree

1 file changed

+6
-6
lines changed
  • container-registry/container-analysis/src/test/java/com/example/containeranalysis

1 file changed

+6
-6
lines changed

container-registry/container-analysis/src/test/java/com/example/containeranalysis/SamplesTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void testUpdateNote() throws Exception {
133133
@Test
134134
public void testCreateOccurrence() throws Exception {
135135

136-
Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID);
136+
Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID, PROJECT_ID);
137137
Occurrence retrieved = Samples.getOccurrence(client, o.getName());
138138
assertEquals(o.getName(), retrieved.getName());
139139

@@ -144,7 +144,7 @@ public void testCreateOccurrence() throws Exception {
144144
@Test
145145
public void testDeleteOccurrence() throws Exception {
146146

147-
Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID);
147+
Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID, PROJECT_ID);
148148
String occName = o.getName();
149149

150150
Samples.deleteOccurrence(client, occName);
@@ -162,7 +162,7 @@ public void testDeleteOccurrence() throws Exception {
162162
public void testUpdateOccurrence() throws Exception {
163163
String typeId = "newType";
164164

165-
Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID);
165+
Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID, PROJECT_ID);
166166

167167
Occurrence.Builder b = Occurrence.newBuilder(o);
168168
Details.Builder d = Details.newBuilder();
@@ -182,7 +182,7 @@ public void testOccurrencesForImage() throws Exception {
182182
int newCount;
183183
int tries = 0;
184184
int origCount = Samples.getOccurrencesForImage(client, imageUrl, PROJECT_ID);
185-
final Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID);
185+
final Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID, PROJECT_ID);
186186
do {
187187
newCount = Samples.getOccurrencesForImage(client, imageUrl, PROJECT_ID);
188188
sleep(SLEEP_TIME);
@@ -200,7 +200,7 @@ public void testOccurrencesForNote() throws Exception {
200200
int newCount;
201201
int tries = 0;
202202
int origCount = Samples.getOccurrencesForNote(client, noteId, PROJECT_ID);
203-
final Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID);
203+
final Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID, PROJECT_ID);
204204
do {
205205
newCount = Samples.getOccurrencesForNote(client, noteId, PROJECT_ID);
206206
sleep(SLEEP_TIME);
@@ -235,7 +235,7 @@ public void testPubSub() throws Exception {
235235
// now, we can test adding 3 more occurrences
236236
int endVal = startVal + 3;
237237
for (int i = startVal; i <= endVal; i++) {
238-
Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID);
238+
Occurrence o = Samples.createOccurrence(client, imageUrl, noteId, PROJECT_ID, PROJECT_ID);
239239
System.out.println("CREATED: " + o.getName());
240240
tries = 0;
241241
do {

0 commit comments

Comments
 (0)