[buildout]

parts = 
  slapos-cookbook
  eggs
  java
  jmeter
  template
  instance-jmeter
  install-plugins

extends =
  ../../stack/slapos.cfg
  ../../component/java/buildout.cfg
  ../../component/shellinabox/buildout.cfg
  ../../component/busybox/buildout.cfg
  ../../component/pwgen/buildout.cfg
  ../../component/nginx/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/curl/buildout.cfg

[eggs]
recipe = z3c.recipe.scripts
eggs =
  ${lxml-python:egg}
  collective.recipe.environment
  slapos.cookbook
  lxml
  slapos.cookbook

[template]
# Default template for the instance.
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
md5sum = 14095c1d35a9c4a8c4f47518958f2306
output = ${buildout:directory}/template.cfg
mode = 0644

[instance-jmeter]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-jmeter.cfg.in
md5sum = 0cd9190023fbd7d077e6d3ea51dd8dfe
output = ${buildout:directory}/template-jmeter.cfg
mode = 0644

[jmeter-script]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/${:filename}
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = jmeter.sh.in
md5sum = 1c08a7ce7fb031ecc3f1869a2abfff6e

[template-nginx-conf]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/nginx_conf.in
md5sum = 9d9addae6483259cdd741cec9e46c61c
filename = nginx_conf.in
mode = 0644

[template-nginx]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/nginx.sh.in
md5sum = 735d500252e09ae2e2c2b7b0845982a3
filename = nginx.sh.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}

#JDBC - available from database supplier
#JMS - available from the JMS provider
# java -jar ApacheJMeter.jar -n -t test-file [-p property-file] [-l log-file]

[jmeter]
recipe = hexagonit.recipe.download
url = http://mirror.reverse.net/pub/apache//jmeter/binaries/apache-jmeter-2.11.tgz
md5sum = f3f853c8f79734580a199efd7a2f0a11
strip-top-level-dir = true

[jmeter-plugin-standard]
recipe = hexagonit.recipe.download
url = http://jmeter-plugins.org/downloads/file/JMeterPlugins-Standard-1.1.3.zip
md5sum = 525ec15732c12b21f8a7a2bb23c6b3cf

[jmeter-plugin-serverAgent]
recipe = hexagonit.recipe.download
url = http://jmeter-plugins.org/downloads/file/ServerAgent-2.2.1.zip
md5sum = 48e6bd68a1a3bf28b56708713f8b32eb

[jmeter-plugin-extrasLibs]
recipe = hexagonit.recipe.download
url = http://jmeter-plugins.org/downloads/file/JMeterPlugins-ExtrasLibs-1.1.3.zip
md5sum = a9036251ed15744f688849562d50a77f

[jmeter-plugin-extras]
recipe = hexagonit.recipe.download
url = http://jmeter-plugins.org/downloads/file/JMeterPlugins-Extras-1.1.3.zip
md5sum = aa8e14e713c408f5237c4e2c041523b7

[jmeter-plugin-webDriver]
recipe = hexagonit.recipe.download
url = http://jmeter-plugins.org/downloads/file/JMeterPlugins-WebDriver-1.1.3.zip
md5sum = 24a5796ee0114d005c8a0b75945301e3

[jmeter-plugin-hadoop]
recipe = hexagonit.recipe.download
url = http://jmeter-plugins.org/downloads/file/JMeterPlugins-Hadoop-1.1.2.zip
md5sum = 0ab720e9c0852ef5fe1f6b347c4d2ec6

[jmeter-config]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/user.properties
md5sum = cea89660608626a471920fca5de25286
filename = user.properties
mode = 0644

[install-plugins]
recipe = plone.recipe.command
location = ${jmeter:location}
stop-on-error = true
command = 
          cp -n ${:location}/bin/jmeter.properties ${:location}/bin/jmeter.old.properties
          cp -nr ${jmeter-plugin-standard:location}/lib/* ${:location}/lib/ && \
          cp -nr ${jmeter-plugin-serverAgent:location}/lib/* ${:location}/lib/ && \
          cp -nr ${jmeter-plugin-extrasLibs:location}/lib/* ${:location}/lib/ && \
          cp -nr ${jmeter-plugin-extras:location}/lib/* ${:location}/lib/ && \
          cp -nr ${jmeter-plugin-webDriver:location}/lib/* ${:location}/lib/ && \
          cp -nr ${jmeter-plugin-hadoop:location}/lib/* ${:location}/lib/ && \
          cp -f ${jmeter-config:location}/${jmeter-config:filename} ${:location}/bin/ && \
          sed -e 's/#jmeter.save.saveservice.thread_counts=.*/jmeter.save.saveservice.thread_counts=true/' \
              -e 's/#jmeter.save.saveservice.response_data=.*/jmeter.save.saveservice.response_data=true/' \
          ${:location}/bin/jmeter.old.properties > ${:location}/bin/jmeter.properties && \
          cd ${jmeter-plugin-serverAgent:location}/ && \
          cp -n ServerAgent.jar CMDRunner.jar startAgent.sh startAgent.bat ${:location}/bin/
update-command = ${:command}

#              -e 's/#jmeter.save.saveservice.output_format=.*/jmeter.save.saveservice.output_format=csv/' \
#              -e 's/#jmeter.save.saveservice.assertion_results_failure_message=.*/jmeter.save.saveservice.assertion_results_failure_message=true/' \

[networkcache]
# signature certificates of the following uploaders.
#   Romain Courteaud
#   Sebastien Robin
#   Kazuhiko Shiozaki
#   Cedric de Saint Martin
#   Yingjie Xu
#   Gabriel Monnerat
#   Łukasz Nowak
#   Test Agent (Automatic update from tests)
signature-certificate-list =
  -----BEGIN CERTIFICATE-----
  MIIB4DCCAUkCADANBgkqhkiG9w0BAQsFADA5MQswCQYDVQQGEwJGUjEZMBcGA1UE
  CBMQRGVmYXVsdCBQcm92aW5jZTEPMA0GA1UEChMGTmV4ZWRpMB4XDTExMDkxNTA5
  MDAwMloXDTEyMDkxNTA5MDAwMlowOTELMAkGA1UEBhMCRlIxGTAXBgNVBAgTEERl
  ZmF1bHQgUHJvdmluY2UxDzANBgNVBAoTBk5leGVkaTCBnzANBgkqhkiG9w0BAQEF
  AAOBjQAwgYkCgYEApYZv6OstoqNzxG1KI6iE5U4Ts2Xx9lgLeUGAMyfJLyMmRLhw
  boKOyJ9Xke4dncoBAyNPokUR6iWOcnPHtMvNOsBFZ2f7VA28em3+E1JRYdeNUEtX
  Z0s3HjcouaNAnPfjFTXHYj4um1wOw2cURSPuU5dpzKBbV+/QCb5DLheynisCAwEA
  ATANBgkqhkiG9w0BAQsFAAOBgQBCZLbTVdrw3RZlVVMFezSHrhBYKA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1cMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAskbFizHr
  b6d3iIyN+wffxz/V9epbKIZVEGJd/6LrTdLiUfJPec7FaxVCWNyKBlCpINBM7cEV
  Gn9t8mdVQflNqOlAMkOlUv1ZugCt9rXYQOV7rrEYJBWirn43BOMn9Flp2nibblby
  If1a2ZoqHRxoNo2yTmm7TSYRORWVS+vvfjY=
  -----END CERTIFICATE-----
  -----BEGIN CERTIFICATE-----
  MIIB9jCCAV+gAwIBAgIJAIlBksrZVkK8MA0GCSqGSIb3DQEBBQUAMBMxETAPBgNV
  BAMMCENPTVAtMzU3MCAXDTEyMDEyNjEwNTUyOFoYDzIxMTIwMTAyMTA1NTI4WjAT
  MREwDwYDVQQDDAhDT01QLTM1NzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
  ts+iGUwi44vtIfwXR8DCnLtHV4ydl0YTK2joJflj0/Ws7mz5BYkxIU4fea/6+VF3
  i11nwBgYgxQyjNztgc9u9O71k1W5tU95yO7U7bFdYd5uxYA9/22fjObaTQoC4Nc9
  mTu6r/VHyJ1yRsunBZXvnk/XaKp7gGE9vNEyJvPn2bkCAwEAAaNQME4wHQYDVR0O
  BBYEFKuGIYu8+6aEkTVg62BRYaD11PILMB8GA1UdIwQYMBaAFKuGIYu8+6aEkTVg
  62BRYaD11PILMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAMoTRpBxK
  YLEZJbofF7gSrRIcrlUJYXfTfw1QUBOKkGFFDsiJpEg4y5pUk1s5Jq9K3SDzNq/W
  it1oYjOhuGg3al8OOeKFrU6nvNTF1BAvJCl0tr3POai5yXyN5jlK/zPfypmQYxE+
  TaqQSGBJPVXYt6lrq/PRD9ciZgKLOwEqK8w=
  -----END CERTIFICATE-----
  -----BEGIN CERTIFICATE-----
  MIIB9jCCAV+gAwIBAgIJAPHoWu90gbsgMA0GCSqGSIb3DQEBBQUAMBQxEjAQBgNV
  BAMMCXZ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MarkupSafe = 0.19
Werkzeug = 0.9.4
buildout-versions = 1.7
cffi = 0.8.2
cmd2 = 0.6.7
collective.recipe.environment = 0.2.0
cryptography = 0.3
itsdangerous = 0.24
lxml = 3.3.3
meld3 = 0.6.10
plone.recipe.command = 1.1
pyOpenSSL = 0.14
pyparsing = 2.0.1
six = 1.6.1
slapos.cookbook = 0.85
slapos.recipe.build = 0.12
slapos.recipe.cmmi = 0.2
slapos.recipe.download = 1.0.dev-r4053
slapos.recipe.template = 2.5
stevedore = 0.15
z3c.recipe.scripts = 1.0.1

# Required by:
# slapos.core==1.0.3
Flask = 0.10.1

# Required by:
# slapos.core==1.0.3
cliff = 1.6.0

# Required by:
# slapos.cookbook==0.85
inotifyx = 0.2.0-1

# Required by:
# slapos.cookbook==0.85
lock-file = 2.0

# Required by:
# slapos.cookbook==0.85
netaddr = 0.7.11

# Required by:
# slapos.core==1.0.3
netifaces = 0.8-1

# Required by:
# cffi==0.8.2
pycparser = 2.10

# Required by:
# slapos.cookbook==0.85
pytz = 2014.2

# Required by:
# slapos.core==1.0.3
requests = 2.2.1

# Required by:
# slapos.cookbook==0.85
slapos.core = 1.0.3

# Required by:
# slapos.core==1.0.3
supervisor = 3.0

# Required by:
# slapos.cookbook==0.85
xml-marshaller = 0.9.7

# Required by:
# slapos.core==1.0.3
zope.interface = 4.1.1