From 16674bd44ecce360c645ca897d0b84172385ad5d Mon Sep 17 00:00:00 2001 From: David Pilato Date: Fri, 6 Nov 2015 12:02:08 +0100 Subject: [PATCH] Mapper attachments plugin name is incorrect Fix integration tests Add a new integration test which checks the plugin name Closes #183. (cherry picked from commit a9d210c7a468fb787797bd213c4818168b909597) (cherry picked from commit 63baaf0) (cherry picked from commit d850298) --- pom.xml | 2 + src/test/resources/integ-tests-183.xml | 404 ++++++++++++++++++ .../test/mapper_attachments/00_basic.yaml | 14 + 3 files changed, 420 insertions(+) create mode 100644 src/test/resources/integ-tests-183.xml create mode 100644 src/test/resources/rest-api-spec/test/mapper_attachments/00_basic.yaml diff --git a/pom.xml b/pom.xml index 9b1414ed61a..2d5761db27c 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,8 @@ ${project.basedir}/src/main/assemblies/plugin.xml mapper_attachments false + + ${project.basedir}/src/test/resources/integ-tests-183.xml diff --git a/src/test/resources/integ-tests-183.xml b/src/test/resources/integ-tests-183.xml new file mode 100644 index 00000000000..8c9edb210c1 --- /dev/null +++ b/src/test/resources/integ-tests-183.xml @@ -0,0 +1,404 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Installing plugin @{name}... + + + + + + + + + + + + + + + + + + + + + + + + + Waiting for elasticsearch to become available on port @{port}... + + + + + + + + + + + + Waiting for elasticsearch to form a cluster of two... + + + + + + + + + + + + + + + + + + + + + + + + + + + Starting up external cluster... + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + External node started PID ${integ.pid} + + + + + + + + + + + + + + + + + + + + + + + + + Shutting down external node PID ${integ.pid} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/rest-api-spec/test/mapper_attachments/00_basic.yaml b/src/test/resources/rest-api-spec/test/mapper_attachments/00_basic.yaml new file mode 100644 index 00000000000..819478d7d56 --- /dev/null +++ b/src/test/resources/rest-api-spec/test/mapper_attachments/00_basic.yaml @@ -0,0 +1,14 @@ +# Integration tests for plugin: check name is correct +# +"Mapper attachments loaded": + - do: + cluster.state: {} + + # Get master node id + - set: { master_node: master } + + - do: + nodes.info: {} + + - match: { nodes.$master.plugins.0.name: mapper-attachments } + - match: { nodes.$master.plugins.0.jvm: true }