Skip to content

Commit

Permalink
Merge branch 'release-2.1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
tofu-rocketry committed Jan 12, 2016
2 parents c818302 + 7e6281b commit 732cfc1
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 106 deletions.
19 changes: 9 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,21 @@ matrix:
- python: "3.4"
fast_finish: true

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install stomp.py
- pip install python-daemon
- pip install python-ldap
- pip install dirq
- pip install unittest2
- pip install coveralls
# Route build to container-based infrastructure
sudo: false
# Cache the dependencies installed by pip
cache: pip

# Install defaults to "pip install -r requirements.txt"

before_script:
- export TMPDIR=$PWD/tmp
- mkdir $TMPDIR
# command to run tests, e.g. python setup.py test
script:
- export PYTHONPATH=$PYTHONPATH:`pwd -P`
- cd test

# Command to run tests
script:
- coverage run --source=ssm,bin -m unittest2 discover --buffer

after_success:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog for ssm
=================
* Tue Jan 12 2016 Adrian Coveney <adrian.coveney@stfc.ac.uk> - 2.1.7-1
- Added a delay when receiver is reconnecting to improve reliability.

* Mon Mar 02 2014 Adrian Coveney <adrian.coveney@stfc.ac.uk> - 2.1.6-1
- Improved the log output for SSM receivers so that there are fewer trivial
entries and so it's more useful in tracking messages on the filesystem.
Expand Down
5 changes: 4 additions & 1 deletion apel-ssm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%endif

Name: apel-ssm
Version: 2.1.6
Version: 2.1.7
%define releasenumber 1
Release: %{releasenumber}%{?dist}
Summary: Secure stomp messenger
Expand Down Expand Up @@ -92,6 +92,9 @@ rm -rf $RPM_BUILD_ROOT
%doc %_defaultdocdir/%{name}

%changelog
* Tue Jan 12 2016 Adrian Coveney <adrian.coveney@stfc.ac.uk> - 2.1.7-1
- Added a delay when receiver is reconnecting to improve reliability.

* Mon Mar 02 2014 Adrian Coveney <adrian.coveney@stfc.ac.uk> - 2.1.6-1
- Improved the log output for SSM receivers so that there are fewer trivial
entries and so it's more useful in tracking messages on the filesystem.
Expand Down
2 changes: 2 additions & 0 deletions bin/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def main():
log.error('Connection lost.')
ssm.shutdown()
dc.close()
log.info("Waiting for 10 minutes before restarting...")
time.sleep(10 * 60)
log.info('Restarting SSM.')
dc.open()
ssm.startup()
Expand Down
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
stomp.py<=3.1.6
python-daemon
python-ldap
dirq
# Dependencies for testing
unittest2
coveralls
2 changes: 1 addition & 1 deletion ssm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import logging
import sys

__version__ = (2, 1, 6)
__version__ = (2, 1, 7)

LOG_BREAK = '========================================'

Expand Down
187 changes: 93 additions & 94 deletions test/test_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,41 +265,41 @@ def test_verify_cert(self):
# Test data below.
################################################################

# openssl req -x509 -nodes -days 365 -subj '/C=UK/O=STFC/OU=SC/CN=adrian coveney' -newkey rsa:1024 -keyout test.key -out test.cert
# Expires 2015-10-16
TEST_CERT_DN = '/C=UK/O=STFC/OU=SC/CN=adrian coveney'
# openssl req -x509 -nodes -days 366 -subj '/C=UK/O=STFC/OU=SC/CN=Test Cert' -newkey rsa:1024 -keyout test.key -out test.cert
# Expires 2016-11-26
TEST_CERT_DN = '/C=UK/O=STFC/OU=SC/CN=Test Cert'

TEST_CERT = '''-----BEGIN CERTIFICATE-----
MIICUjCCAbugAwIBAgIJAOZv73BJdvtxMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNV
BAYTAlVLMQ0wCwYDVQQKDARTVEZDMQswCQYDVQQLDAJTQzEXMBUGA1UEAwwOYWRy
aWFuIGNvdmV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+aAyfJ/0pMGsz89P
9185znbe5undog==
-----END PRIVATE KEY-----'''

MSG = 'This is some test data.'
Expand All @@ -310,67 +310,66 @@ def test_verify_cert(self):
Content-Type: application/x-pkcs7-mime; smime-type=enveloped-data; name="smime.p7m"
Content-Transfer-Encoding: base64
MIIBTQYJKoZIhvcNAQcDoIIBPjCCAToCAQAxgekwgeYCAQAwTzBCMQswCQYDVQQG
EwJVSzENMAsGA1UECgwEU1RGQzELMAkGA1UECwwCU0MxFzAVBgNVBAMMDmFkcmlh
biBjb3ZlbmV5AgkA5m/vcEl2+3EwDQYJKoZIhvcNAQEBBQAEgYB9xvm+Nvpfu8zD
xIcV7BC0P6wpZYqy+DhW/10JN7Eq5Wsm4EZYRagbDSP2+WvNQ+tffLtmlH1lsFFe
3OViEBZOwSh3pXL6sFteftrZJJDaLnRh0mDjOZ6A/JhBZDbK/hzfyfrI3VSnJkY2
cC8GjWTaU7MASixEqTQC8AoP8NFW+DBJBgkqhkiG9w0BBwEwGgYIKoZIhvcNAwIw
DgICAKAECCntgjVbfq2WgCDZLJYHU7+qvZ0tcqx8dQkRaHJj7v99RUGX2PuaIglQ
2g==
MIIBSAYJKoZIhvcNAQcDoIIBOTCCATUCAQAxgeQwgeECAQAwSjA9MQswCQYDVQQG
EwJVSzENMAsGA1UECgwEU1RGQzELMAkGA1UECwwCU0MxEjAQBgNVBAMMCVRlc3Qg
Q2VydAIJAO90ilCRmLiVMA0GCSqGSIb3DQEBAQUABIGAk1+nwYVXhLe8XmbksVo6
ZeQzdKMJV9pwP32eAiyncIPjm0GpyHpEvYaJ1+4+vDWyqA8MR912j0wVxTFKM3to
RynPyC98gykaUflI9pKKvo/Um3FDV6goH1kLmT+/1qEOXjDff9iZBmZ+AWNM9LBN
8kHoIMGymCqM8zZ6OUt3VIowSQYJKoZIhvcNAQcBMBoGCCqGSIb3DQMCMA4CAgCg
BAirHdYutwNXk4AgB87AFNZ43NSQtj++5QXfRoRpfsBbs7GFgfOVA+ULT5Y=
'''

# openssl smime -sign -signer test.cert -inkey test.key -in msg.text -text
SIGNED_MSG = '''MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha1"; boundary="----67738FDB572078F189F11E9C26F02E69"
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha1"; boundary="----D23AB54130D33D70AF44A49F6A408898"
This is an S/MIME signed message
------67738FDB572078F189F11E9C26F02E69
------D23AB54130D33D70AF44A49F6A408898
Content-Type: text/plain
This is some test data.
------67738FDB572078F189F11E9C26F02E69
------D23AB54130D33D70AF44A49F6A408898
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
MIIEXgYJKoZIhvcNAQcCoIIETzCCBEsCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3
DQEHAaCCAlYwggJSMIIBu6ADAgECAgkA5m/vcEl2+3EwDQYJKoZIhvcNAQEFBQAw
QjELMAkGA1UEBhMCVUsxDTALBgNVBAoMBFNURkMxCzAJBgNVBAsMAlNDMRcwFQYD
VQQDDA5hZHJpYW4gY292ZW5leTAeFw0xNDEwMTYwOTEwNThaFw0xNTEwMTYwOTEw
NThaMEIxCzAJBgNVBAYTAlVLMQ0wCwYDVQQKDARTVEZDMQswCQYDVQQLDAJTQzEX
MBUGA1UEAwwOYWRyaWFuIGNvdmVuZXkwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJ
AoGBAKprde44RVoR3iPqNCe9EtgJnV/MoNBuw3ox6jWHzFtStwQUmg3juSByUjDg
qSoKfKIFSn59gdaW6XH9/VYjYEPs/GyUampv1g6xapCEba1b+zwCiUMjgq2ET1Xu
gDg3WjCeX4mKF8mvKQGgrs3xmIpAPWBzH43Vttsj0S/YC+4HAgMBAAGjUDBOMB0G
A1UdDgQWBBTc1YpusWljyPjEtQft0Uliw/o/3DAfBgNVHSMEGDAWgBTc1YpusWlj
yPjEtQft0Uliw/o/3DAMBgNVHR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9w0DAgIB
KDANBgkqhkiG9w0BAQEFAASBgLXfxWyDPzKJ4zjozVMkzIHIIYC1NHCMQzIqFNmy
LCORY7Yd1DTsHv1Qshq0u/yA+6BWCN0S3MlUWJbnAN4zbyAH7EkgVZkymkn4KQyL
Si6AG6HNsYICeZW6gK/FW6ClKbXamygELe3Nx5cbfVEfT0Jsz2vj1gtS+tz87InJ
SqqH
------67738FDB572078F189F11E9C26F02E69--'''
------D23AB54130D33D70AF44A49F6A408898--'''

# Created same way as SIGNED_MSG but text manually converted to quoted-printable
# and Content-Type and Content-Transfer-Encoding fields added in manually.
SIGNED_MSG2 = '''MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha1"; boundary="----4BE6B93D7D20765BBC2405B636FDBBFA"
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha1"; boundary="----C4DE0669C598F78D53E9A61C6BB38924"
This is an S/MIME signed message
------4BE6B93D7D20765BBC2405B636FDBBFA
------C4DE0669C598F78D53E9A61C6BB38924
Content-Type: text/xml; charset=utf8
Content-Transfer-Encoding: quoted-printable
Expand Down Expand Up @@ -405,37 +404,37 @@ def test_verify_cert(self):
om:Site><com:Host com:primary=3D"false" com:description=3D"CPUS=3D2;SLOTS=
=3D1,0">zam052v15</com:Host></com:UsageRecord>
------4BE6B93D7D20765BBC2405B636FDBBFA
------C4DE0669C598F78D53E9A61C6BB38924
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
MIIEXgYJKoZIhvcNAQcCoIIETzCCBEsCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3
DQEHAaCCAlYwggJSMIIBu6ADAgECAgkA5m/vcEl2+3EwDQYJKoZIhvcNAQEFBQAw
QjELMAkGA1UEBhMCVUsxDTALBgNVBAoMBFNURkMxCzAJBgNVBAsMAlNDMRcwFQYD
VQQDDA5hZHJpYW4gY292ZW5leTAeFw0xNDEwM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oOD/w2mxeG3Dd7QxggHLMIIBxwIBATBKMD0xCzAJBgNVBAYTAlVL
MQ0wCwYDVQQKDARTVEZDMQswCQYDVQQLDAJTQzESMBAGA1UEAwwJVGVzdCBDZXJ0
AgkA73SKUJGYuJUwCQYFKw4DAhoFAKCB2DAYBgkqhkiG9w0BCQMxCwYJKoZIhvcN
AQcBMBwGCSqGSIb3DQEJBTEPFw0xNTExMjYxNjI0MTRaMCMGCSqGSIb3DQEJBDEW
BBSsAbgU5Xqg/QNNwbXFBxU/k7PFmzB5BgkqhkiG9w0BCQ8xbDBqMAsGCWCGSAFl
AwQBKjALBglghkgBZQMEARYwCwYJYIZIAWUDBAECMAoGCCqGSIb3DQMHMA4GCCqG
SIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIB
KDANBgkqhkiG9w0BAQEFAASBgJ+Wn5Huc7Kyxw1yiHp1dbzVUpU1f4LWJiZLL3+c
+6jJAU1yGqI9awV1XrM7vcrw7Rqo9DQTGWBJ57VW02BAfYiNsKax2rIQmSj74L6a
2n4xYtDgTC27PBLqs7vX/9AzNx40MdWl61MTIXpJcgDAV0LzAyLZvE3ZlPZWrKz+
KH1d
------4BE6B93D7D20765BBC2405B636FDBBFA--'''
------C4DE0669C598F78D53E9A61C6BB38924--'''

MSG2 = '''<com:UsageRecord xmlns:com="http://eu-emi.eu/namespaces/2012/11/computerecord"><com:RecordIdentity com:recordId="62991a08-909b-4516-aa30-3732ab3d8998" com:createTime="2013-02-22T15:58:44.567+01:00"/><com:JobIdentity><com:GlobalJobId>ac2b1157-7aff-42d9-945e-389aa9bbb19a</com:GlobalJobId><com:LocalJobId>7005</com:LocalJobId></com:JobIdentity><com:UserIdentity><com:GlobalUserName com:type="rfc2253">CN=Bjoern Hagemeier,OU=Forschungszentrum Juelich GmbH,O=GridGermany,C=DE</com:GlobalUserName><com:LocalUserId>bjoernh</com:LocalUserId><com:LocalGroup>users</com:LocalGroup></com:UserIdentity><com:JobName>HiLA</com:JobName><com:Status>completed</com:Status><com:ExitStatus>0</com:ExitStatus><com:Infrastructure com:type="grid"/><com:Middleware com:name="unicore">unicore</com:Middleware><com:WallDuration>PT0S</com:WallDuration><com:CpuDuration>PT0S</com:CpuDuration><com:ServiceLevel com:type="HEPSPEC">1.0</com:ServiceLevel><com:Memory com:metric="total" com:storageUnit="KB" com:type="physical">0</com:Memory><com:Memory com:metric="total" com:storageUnit="KB" com:type="shared">0</com:Memory><com:TimeInstant com:type="uxToBssSubmitTime">2013-02-22T15:58:44.568+01:00</com:TimeInstant><com:TimeInstant com:type="uxStartTime">2013-02-22T15:58:46.563+01:00</com:TimeInstant><com:TimeInstant com:type="uxEndTime">2013-02-22T15:58:49.978+01:00</com:TimeInstant><com:TimeInstant com:type="etime">2013-02-22T15:58:44+01:00</com:TimeInstant><com:TimeInstant com:type="ctime">2013-02-22T15:58:44+01:00</com:TimeInstant><com:TimeInstant com:type="qtime">2013-02-22T15:58:44+01:00</com:TimeInstant><com:TimeInstant com:type="maxWalltime">2013-02-22T16:58:45+01:00</com:TimeInstant><com:NodeCount>1</com:NodeCount><com:Processors>2</com:Processors><com:EndTime>2013-02-22T15:58:45+01:00</com:EndTime><com:StartTime>2013-02-22T15:58:45+01:00</com:StartTime><com:MachineName>zam052v15.zam.kfa-juelich.de</com:MachineName><com:SubmitHost>zam052v02</com:SubmitHost><com:Queue com:description="execution">batch</com:Queue><com:Site>zam052v15.zam.kfa-juelich.de</com:Site><com:Host com:primary="false" com:description="CPUS=2;SLOTS=1,0">zam052v15</com:Host></com:UsageRecord>'''

Expand Down

0 comments on commit 732cfc1

Please sign in to comment.