From 075cfaac5601deac7e005e96cd11039fa264923d Mon Sep 17 00:00:00 2001 From: Daniel Lebrero Date: Mon, 4 Sep 2017 23:36:03 +0200 Subject: [PATCH] moving all examples to an example folder --- {api-example-1 => examples/api-example-1}/Dockerfile | 0 {api-example-1 => examples/api-example-1}/README.md | 0 {api-example-1 => examples/api-example-1}/project.clj | 0 .../api-example-1}/src/compojure/api/examples/domain.clj | 0 .../api-example-1}/src/compojure/api/examples/handler.clj | 0 .../api-example-1}/src/compojure/api/examples/main.clj | 0 config.sample.edn => examples/config.sample.edn | 0 {consul => examples/consul}/docker-compose.yml | 2 +- {consul => examples/consul}/swagger-search/Dockerfile | 0 .../consul}/swagger-search/consul.swagger.config.edn | 0 {etcd => examples/etcd}/docker-compose.yml | 2 +- {etcd => examples/etcd}/swagger-search/Dockerfile | 0 .../etcd}/swagger-search/etcd.swagger.config.edn | 0 test/com/ig/swagger/search/indexing_test.clj | 4 ++++ 14 files changed, 6 insertions(+), 2 deletions(-) rename {api-example-1 => examples/api-example-1}/Dockerfile (100%) rename {api-example-1 => examples/api-example-1}/README.md (100%) rename {api-example-1 => examples/api-example-1}/project.clj (100%) rename {api-example-1 => examples/api-example-1}/src/compojure/api/examples/domain.clj (100%) rename {api-example-1 => examples/api-example-1}/src/compojure/api/examples/handler.clj (100%) rename {api-example-1 => examples/api-example-1}/src/compojure/api/examples/main.clj (100%) rename config.sample.edn => examples/config.sample.edn (100%) rename {consul => examples/consul}/docker-compose.yml (97%) rename {consul => examples/consul}/swagger-search/Dockerfile (100%) rename {consul => examples/consul}/swagger-search/consul.swagger.config.edn (100%) rename {etcd => examples/etcd}/docker-compose.yml (98%) rename {etcd => examples/etcd}/swagger-search/Dockerfile (100%) rename {etcd => examples/etcd}/swagger-search/etcd.swagger.config.edn (100%) diff --git a/api-example-1/Dockerfile b/examples/api-example-1/Dockerfile similarity index 100% rename from api-example-1/Dockerfile rename to examples/api-example-1/Dockerfile diff --git a/api-example-1/README.md b/examples/api-example-1/README.md similarity index 100% rename from api-example-1/README.md rename to examples/api-example-1/README.md diff --git a/api-example-1/project.clj b/examples/api-example-1/project.clj similarity index 100% rename from api-example-1/project.clj rename to examples/api-example-1/project.clj diff --git a/api-example-1/src/compojure/api/examples/domain.clj b/examples/api-example-1/src/compojure/api/examples/domain.clj similarity index 100% rename from api-example-1/src/compojure/api/examples/domain.clj rename to examples/api-example-1/src/compojure/api/examples/domain.clj diff --git a/api-example-1/src/compojure/api/examples/handler.clj b/examples/api-example-1/src/compojure/api/examples/handler.clj similarity index 100% rename from api-example-1/src/compojure/api/examples/handler.clj rename to examples/api-example-1/src/compojure/api/examples/handler.clj diff --git a/api-example-1/src/compojure/api/examples/main.clj b/examples/api-example-1/src/compojure/api/examples/main.clj similarity index 100% rename from api-example-1/src/compojure/api/examples/main.clj rename to examples/api-example-1/src/compojure/api/examples/main.clj diff --git a/config.sample.edn b/examples/config.sample.edn similarity index 100% rename from config.sample.edn rename to examples/config.sample.edn diff --git a/consul/docker-compose.yml b/examples/consul/docker-compose.yml similarity index 97% rename from consul/docker-compose.yml rename to examples/consul/docker-compose.yml index 294f8c1..f84477b 100644 --- a/consul/docker-compose.yml +++ b/examples/consul/docker-compose.yml @@ -24,7 +24,7 @@ services: - "8503:8503" - "8504:3000" volumes: - - ../:/app + - ../../:/app - ./swagger-search:/swagger-config - ~/.m2:/root/.m2 - ~/.lein:/root/.lein diff --git a/consul/swagger-search/Dockerfile b/examples/consul/swagger-search/Dockerfile similarity index 100% rename from consul/swagger-search/Dockerfile rename to examples/consul/swagger-search/Dockerfile diff --git a/consul/swagger-search/consul.swagger.config.edn b/examples/consul/swagger-search/consul.swagger.config.edn similarity index 100% rename from consul/swagger-search/consul.swagger.config.edn rename to examples/consul/swagger-search/consul.swagger.config.edn diff --git a/etcd/docker-compose.yml b/examples/etcd/docker-compose.yml similarity index 98% rename from etcd/docker-compose.yml rename to examples/etcd/docker-compose.yml index 545a48d..d300301 100644 --- a/etcd/docker-compose.yml +++ b/examples/etcd/docker-compose.yml @@ -27,7 +27,7 @@ services: - "8503:8503" - "8504:3000" volumes: - - ../:/app + - ../../:/app - ./swagger-search:/swagger-config - ~/.m2:/root/.m2 - ~/.lein:/root/.lein diff --git a/etcd/swagger-search/Dockerfile b/examples/etcd/swagger-search/Dockerfile similarity index 100% rename from etcd/swagger-search/Dockerfile rename to examples/etcd/swagger-search/Dockerfile diff --git a/etcd/swagger-search/etcd.swagger.config.edn b/examples/etcd/swagger-search/etcd.swagger.config.edn similarity index 100% rename from etcd/swagger-search/etcd.swagger.config.edn rename to examples/etcd/swagger-search/etcd.swagger.config.edn diff --git a/test/com/ig/swagger/search/indexing_test.clj b/test/com/ig/swagger/search/indexing_test.clj index 21420d5..b2fa5f3 100644 --- a/test/com/ig/swagger/search/indexing_test.clj +++ b/test/com/ig/swagger/search/indexing_test.clj @@ -96,6 +96,10 @@ (parse-and-index "youtube.json") "method:put The part parameter specifies a comma-separated list of commentThread resource properties that " 10) + (index/search* + (parse-and-index "magento.json") + "catalog-data-category-tree-interface" 10) + (->> (index/search* (parse-and-index "v2_big_example.json")