Drop name filtering for project searches

`projectSearch` is exactly for one name, and the name is not a
wildcard. So the only result has to be the correct one and the
filtering is unnecessary and we drop it. With this dropping, all the
attachments in searching become unnecessary, which we clean up in
follow-up commits.

Change-Id: I66cf84e16bcc283f241a643f9b34c7f1bfbce907
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/Conduit.java b/src/main/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/Conduit.java
index 698045c..0a61f34 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/Conduit.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/Conduit.java
@@ -163,9 +163,6 @@
     params.put("constraints", ImmutableMap.of("query", name));
 
     JsonElement callResult = conduitConnection.call("project.search", params, token);
-    return searchUtils.stream(callResult, ProjectSearch.class)
-        .filter((r) -> r.getFields().getName().equals(name))
-        .findFirst()
-        .orElse(null);
+    return searchUtils.stream(callResult, ProjectSearch.class).findFirst().orElse(null);
   }
 }
diff --git a/src/test/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/ConduitTest.java b/src/test/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/ConduitTest.java
index e8f701e..20f9f17 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/ConduitTest.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/ConduitTest.java
@@ -91,7 +91,7 @@
   }
 
   @Test
-  public void testProjectSearchPassSimple() throws Exception {
+  public void testProjectSearchPass() throws Exception {
     Map<String, Object> params = new HashMap<>();
     params.put("constraints", ImmutableMap.of("query", "foo"));
 
@@ -109,27 +109,6 @@
     assertThat(actual.getPhid()).isEqualTo("PHID-PROJ-foo");
   }
 
-  @Test
-  public void testProjectSearchPassMultiple() throws Exception {
-    Map<String, Object> params = new HashMap<>();
-    params.put("constraints", ImmutableMap.of("query", "foo"));
-
-    JsonArray data = new JsonArray();
-    data.add(createProjectJson(2, "fooBar"));
-    data.add(createProjectJson(3, "foo"));
-    data.add(createProjectJson(4, "BazFoo"));
-
-    JsonObject result = new JsonObject();
-    result.add("data", data);
-
-    when(conduitConnection.call("project.search", params, TOKEN)).thenReturn(result);
-
-    Conduit conduit = createConduit();
-
-    ProjectSearch actual = conduit.projectSearch("foo");
-    assertThat(actual.getPhid()).isEqualTo("PHID-PROJ-foo");
-  }
-
   // TODO: Add tests for maniphestEdit
 
   private JsonObject createProjectJson(int id, String name) {