diff options
Diffstat (limited to 'charms/trusty/cassandra/lib')
-rw-r--r-- | charms/trusty/cassandra/lib/apache.key | 53 | ||||
-rw-r--r-- | charms/trusty/cassandra/lib/datastax.key | 49 | ||||
-rwxr-xr-x | charms/trusty/cassandra/lib/juju-deployer-wrapper.py | 15 | ||||
-rwxr-xr-x | charms/trusty/cassandra/lib/testcharms/empty/hooks/install | 6 | ||||
-rw-r--r-- | charms/trusty/cassandra/lib/testcharms/empty/metadata.yaml | 11 |
5 files changed, 134 insertions, 0 deletions
diff --git a/charms/trusty/cassandra/lib/apache.key b/charms/trusty/cassandra/lib/apache.key new file mode 100644 index 0000000..6dfb1fd --- /dev/null +++ b/charms/trusty/cassandra/lib/apache.key @@ -0,0 +1,53 @@ +Apache Cassandra signing key (2014-11-14) + +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQINBFQJvgUBEAC0KcYCTj0hd15p4fiXBsbob0sKgsvN5Lm7N9jzJWlGshJ0peMi +kH8YhDXw5Lh+mPEHksL7t1L8CIr1a+ntns/Opt65ZPO38ENVkOqEVAn9Z5sIoZsb +7rX3USHJEnp1vAtG6YFTLpHOwgoIhY//D8qHb89MTYeqLHkep9h16vrybfglLLlJ +qdph+lRC/hpJIdAUCmybym2arnLqBfYJTfU3LyRYQoRPIzrE38Y/oNvYN6mkwCPS +fwNoPB7hrT0u6otNckxftR01To614+Jnl81RyTePGC/wahrHll7mbMEFw9nlMECt +GgQYFRPmcojLvMxXnBWBQ4LjTSMvToFCPdnjzMeWkeN6qE1c2/S/qmxOXBSP5DCz +UKuqAAZZoXTbMcEWYngUioFYUU1TSrK85Q8xqxAOUhYDSfv2brZp7h2lNY1RsQ9L +6inMwNBTyLnH1b9WXH6XUNH51yUThJzRP2CUYw3P0lATrS62aTpehsnddQ8yWskq ++7nx6dN+khXqvAm+WyO2NojfeRFgHRIDlESTPkEekWzmZgI3R7ZzEBd6Nqx0k8mh +ePW7ImChqyazjsZevBxJDOOjzFrvHEVMh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1/5906ww/PR6aLgW6+Jhc5pNGUI/gBSK7nLReq +wEWi68zsTb9rh9I+ILdnbM/Loq1vCFLlGgc26U7aRj+N/os5ys5TPkOpuyMoz7Rq +PkjrM2CQoOMxeLWjXJSwjWeLGPalw2/to9NFClznS6hYUETn2HB/Px0DOMiUzm3B +AUeLlJzSeRLTKhcOugK7UcsQD2FHnMBJz50bxis9X7pjmnc/tWpjAGJfaWdjDIo= +=yiQ4 +-----END PGP PUBLIC KEY BLOCK----- diff --git a/charms/trusty/cassandra/lib/datastax.key b/charms/trusty/cassandra/lib/datastax.key new file mode 100644 index 0000000..adb7cd8 --- /dev/null +++ b/charms/trusty/cassandra/lib/datastax.key @@ -0,0 +1,49 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQENBExkbXsBCACgUAbMWASAz/fmnMoWE4yJ/YHeuFHTK8zloJ/mApwizlQXTIVp +U4UV8nbLJrbkFY92VTcC2/IBtvnHpZl8eVm/JSI7nojXc5Kmm4Ek/cY7uW2KKPr4 +cuka/5cNsOg2vsgTIMOZT6vWAbag2BGHtEJbriMLhT3v1tlu9caJfybu3QFWpahC +wRYtG3B4tkypt21ssWwNnmp2bjFRGpLssc5HCCxUCBFLYoIkAGAFRZ6ymglsLDBn +SCEzCkn9zQfmyqs0lZk4odBx6rzE350xgEnzFktT2uekFYqRqPQY8f7AhVfj2DJF +gVM4wXbSoVrTnDiFsaJt/Ea4OJ263jRUHeIRABEBAAG0LVJpcHRhbm8gUGFja2Fn +ZSBSZXBvc2l0b3J5IDxwYXVsQHJpcHRhbm8uY29tPokBPgQTAQIAKAIbAwYLCQgH +AwIGFQgCCQoLBBYCAwECHgECF4AFAlW/zKMFCRLBYKQACgkQNQIA8rmZo3LebAgA +gAwWkvBrPaD5Kf8H4uw9rXtHnHYxX5G6cOVJ3vuWCs1ov7m3JWq918q00hWfLtOs +zb15kFcjcEJ7kiRFJmAXZhcX2I0DHTmTZSl9orKzoUlXQqAANJGdek8pz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xn9xcxiUaKk32sjT3sict +XO5tB2KhE3A= +=YO7C +-----END PGP PUBLIC KEY BLOCK----- diff --git a/charms/trusty/cassandra/lib/juju-deployer-wrapper.py b/charms/trusty/cassandra/lib/juju-deployer-wrapper.py new file mode 100755 index 0000000..bf792f2 --- /dev/null +++ b/charms/trusty/cassandra/lib/juju-deployer-wrapper.py @@ -0,0 +1,15 @@ +#!/usr/bin/python + +import subprocess +import sys + +# Strip the -W option, as its noise messes with test output. +args = list(sys.argv[1:]) +if '-W' in args: + args.remove('-W') +cmd = ['juju-deployer'] + args +try: + subprocess.check_output(cmd, stderr=subprocess.STDOUT) +except subprocess.CalledProcessError as x: + sys.stderr.write(x.output) + sys.exit(x.returncode) diff --git a/charms/trusty/cassandra/lib/testcharms/empty/hooks/install b/charms/trusty/cassandra/lib/testcharms/empty/hooks/install new file mode 100755 index 0000000..ce28f62 --- /dev/null +++ b/charms/trusty/cassandra/lib/testcharms/empty/hooks/install @@ -0,0 +1,6 @@ +#!/bin/sh -ex +# apt-get install \ +# python3-pip python3-dev python3-six python3-yaml \ +# build-essential libev4 libev-dev +# pip3 install blist +# pip3 install cassandra-driver diff --git a/charms/trusty/cassandra/lib/testcharms/empty/metadata.yaml b/charms/trusty/cassandra/lib/testcharms/empty/metadata.yaml new file mode 100644 index 0000000..bc3e0f0 --- /dev/null +++ b/charms/trusty/cassandra/lib/testcharms/empty/metadata.yaml @@ -0,0 +1,11 @@ +name: empty +maintainer: Somchai Turdsak <somchai@example.com> +summary: A charm that does nothing except define some relations. +description: | + This is a client charm for testing the Cassandra client relations. +tags: ["databases"] +requires: + database: + interface: cassandra + database-admin: + interface: cassandra-admin |