Repository: bigtop
Updated Branches:
  refs/heads/master bf2091aa9 -> 0b3feb4fc


BIGTOP-2912: Initialize dataset for solr smoke test

Change-Id: Ic55033d04f7433eaa6869b8df9c44170b1b7ec0f
Signed-off-by: Jun He <jun...@linaro.org>
Signed-off-by: Evans Ye <evan...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/0b3feb4f
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/0b3feb4f
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/0b3feb4f

Branch: refs/heads/master
Commit: 0b3feb4fc2b47592c93b23daef84394b3da87db2
Parents: bf2091a
Author: Jun He <jun...@linaro.org>
Authored: Thu Oct 19 16:45:40 2017 +0800
Committer: Evans Ye <evan...@apache.org>
Committed: Mon Feb 5 12:55:15 2018 +0800

----------------------------------------------------------------------
 bigtop-tests/smoke-tests/solr/build.gradle | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/0b3feb4f/bigtop-tests/smoke-tests/solr/build.gradle
----------------------------------------------------------------------
diff --git a/bigtop-tests/smoke-tests/solr/build.gradle 
b/bigtop-tests/smoke-tests/solr/build.gradle
index b1e07a8..74c7dd1 100644
--- a/bigtop-tests/smoke-tests/solr/build.gradle
+++ b/bigtop-tests/smoke-tests/solr/build.gradle
@@ -15,6 +15,22 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
+def create_collection() {
+  exec {
+    executable "/usr/bin/solrctl"
+    args "instancedir", "--generate", "/tmp/smoke_data"
+  }
+  exec {
+    executable "/usr/bin/solrctl"
+    args "instancedir", "--create", "smoke", "/tmp/smoke_data"
+  }
+  exec {
+    executable "/usr/bin/solrctl"
+    args "collection", "--create", "smoke"
+  }
+}
+
 def junitVersion = '4.11'
 dependencies {
   compile group: 'junit', name: 'junit', version: junitVersion, transitive: 
'true'
@@ -35,8 +51,10 @@ sourceSets {
 
 test.doFirst {
   checkEnv(["HADOOP_CONF_DIR"])
+  create_collection()
 }
 
 test {
   include '**/Test*'
+  systemProperty "org.apache.bigtop.itest.solr_url", 
"http://localhost:8983/solr/smoke";
 }

Reply via email to