fix broken test case
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/1fe57680 Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/1fe57680 Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/1fe57680 Branch: refs/heads/master Commit: 1fe57680ca957d1563b41b89ea072d85338facad Parents: d6c72ab Author: daewon <dae...@apache.org> Authored: Fri Apr 6 13:45:08 2018 +0900 Committer: daewon <dae...@apache.org> Committed: Fri Apr 6 13:45:08 2018 +0900 ---------------------------------------------------------------------- .../src/main/scala/org/apache/s2graph/graphql/HttpServer.scala | 2 +- .../src/main/scala/org/apache/s2graph/graphql/types/S2Type.scala | 2 +- .../src/test/scala/org/apache/s2graph/graphql/SchemaTest.scala | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/1fe57680/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala ---------------------------------------------------------------------- diff --git a/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala b/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala index 7d3771a..26bce34 100644 --- a/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala +++ b/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala @@ -40,7 +40,7 @@ object Server extends App { import scala.concurrent.duration._ - val route: Route = (post & path("graphql")) { + val route = (post & path("graphql")) { entity(as[spray.json.JsValue])(GraphQLServer.endpoint) } ~ { getFromResource("assets/graphiql.html") http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/1fe57680/s2graphql/src/main/scala/org/apache/s2graph/graphql/types/S2Type.scala ---------------------------------------------------------------------- diff --git a/s2graphql/src/main/scala/org/apache/s2graph/graphql/types/S2Type.scala b/s2graphql/src/main/scala/org/apache/s2graph/graphql/types/S2Type.scala index 0fff21b..7a46bd1 100644 --- a/s2graphql/src/main/scala/org/apache/s2graph/graphql/types/S2Type.scala +++ b/s2graphql/src/main/scala/org/apache/s2graph/graphql/types/S2Type.scala @@ -207,7 +207,7 @@ object S2Type { } val indexEnumType = EnumType( - s"Label_index_${label.label}", + s"Label_Index_${label.label}", description = Option("desc here"), values = idxNames ) http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/1fe57680/s2graphql/src/test/scala/org/apache/s2graph/graphql/SchemaTest.scala ---------------------------------------------------------------------- diff --git a/s2graphql/src/test/scala/org/apache/s2graph/graphql/SchemaTest.scala b/s2graphql/src/test/scala/org/apache/s2graph/graphql/SchemaTest.scala index 8b2b3fe..0a309c7 100644 --- a/s2graphql/src/test/scala/org/apache/s2graph/graphql/SchemaTest.scala +++ b/s2graphql/src/test/scala/org/apache/s2graph/graphql/SchemaTest.scala @@ -106,6 +106,7 @@ class SchemaTest extends FunSuite with Matchers with BeforeAndAfterAll { Map("name" -> "Service_kakao"), + Map("name" -> "Label_Index_friends"), Map("name" -> "Label_friends_user"), Map("name" -> "Label_friends_user_both"),