Commit Graph

117 Commits

Author SHA1 Message Date
Peter Hamilton b04e3ab3dc Updating support for the LongInteger primitive
This change updates the LongInteger primitive, improving class
documentation, adding standard Python operators, cleaning up the
original implementation, and expanding the corresponding unit test suite
to address the modifications.
2015-08-27 08:47:07 -04:00
Peter Hamilton f3c202cf3c Merge pull request #75 from OpenKMIP/maint/split-primitive-tests
Splitting primitive object test suites
2015-08-24 09:03:06 -04:00
Peter Hamilton 3ebc09670a Updating integration tests to ignore software server
This change adds a new pytest marker, ignore. It is used to silently
skip the software server integration test suite, which is now broken
from a recent ssl update. A pytest ini configuration file is also added
to register the new marker.
2015-08-20 09:13:20 -04:00
Peter Hamilton 76a2f68f1f Splitting primitive object test suites
This change splits the original set of primitive object test suites into
separate modules. Minor refactoring to account for structure changes is
included.
2015-08-18 09:56:51 -04:00
Peter Hamilton a21f0b66c6 Adding payloads for the GetAttributeList operation
This change adds request and response payloads for the GetAttributeList
operation. It updates the payload factories to support these new objects
and updates and adds all associated or required test suites. A new
exception is also included that is thrown by objects attempting to parse
invalid KMIP encodings.
2015-08-17 12:15:25 -04:00
Peter Hamilton a9cb9b180e PyKMIP - Release 0.4.0
This update includes several new features and bug fixes:
* Add the official Pie API for a simpler KMIP interface
* Add the ProxyKmipClient implementation of the Pie API
* Add key, secret, and opaque objects to the Pie object hierarchy
* Add unit demos for all ProxyKmipClient operations
* Add complete unit and integration test suites for the Pie package
* Add KMIPProxy client support for the Activate and Revoke operations
* Add KMIPProxy client connection timeout support
* Add KMIPProxy integration tests for asymm. key/secret/opaque objects
* Add improved request error logging for the KMIPServer
* Update README with more information about the clients and Pie API
* Remove AUTHORS in favor of Git commit history
* Fix bug with dangling file handle when setting __version__
* Fix bug with dangling socket connection upon client destruction
2015-08-13 13:41:41 -04:00
Peter Hamilton 097bd38910 Fixing pep8 errors for the KMIP server
This change fixes pep8 whitespace errors in the KMIP server.
2015-08-03 10:52:27 -04:00
Peter Hamilton bb0487b5dc Merge pull request #69 from OpenKMIP/feat/add-pie-client-opaque
Adding opaque object examples for the ProxyKmipClient
2015-07-31 17:21:40 -04:00
Felix Engelmann 27f09f6b34 KMIPServer serve log exceptions
The Exception handler discards all errors, would be nice to log them
to the error logger before closing the connection.
2015-07-31 12:28:05 +02:00
Hadi Esiely 50cc8d9e8a Addition of Opaque Objects Integration Tests
Tests that opaque objects can be properly registered, retrieved, and destroyed.
2015-07-30 13:01:51 -04:00
Hadi Esiely f7e9c398fc Addition of Passphrase Integration Test
Tests that passphrases can be properly registered, retrieved, and destroyed.
2015-07-30 12:22:46 -04:00
Hadi Esiely 866ba3f3f4 Addition of Certificate Integration Tests
Tests that certificates can be properly registered, retrieved, and destroyed.
2015-07-30 10:54:37 -04:00
Peter Hamilton a148e7c615 Adding opaque object examples for the ProxyKmipClient
This change adds two examples showing how to use opaque objects with the
ProxyKmipClient. The first is a unit demo showing how to register an
opaque object using the register operation of the ProxyKmipClient. The
second is an integration test showing how to register, get, and destroy
an opaque object using the ProxyKmipClient.
2015-07-30 10:39:06 -04:00
Peter Hamilton 689275ced0 Adding secret data examples for the ProxyKmipClient
This change adds two examples showing how to use secret data with the
ProxyKmipClient. The first is a unit demo showing how to register a
secret using the register operation of the ProxyKmipClient. The second
is an integration test showing how to register, get, and destroy a
secret using the ProxyKmipClient.
2015-07-30 10:22:48 -04:00
Peter Hamilton 275f341da9 Adding certificate examples for the ProxyKmipClient
This change adds two examples showing how to use certificates with the
ProxyKmipClient. The first is a unit demo showing how to register a
certificate using the register operation of the ProxyKmipClient. The
second is an integration test showing how to register, get, and destroy
a certificate using the ProxyKmipClient.
2015-07-30 08:31:47 -04:00
Peter Hamilton 93610719a5 Adding opaque objects to the Pie object hierarchy
This change adds an OpaqueObject class to the Pie object hierarchy. A
unit test suite covering the class is included, as are updates to the
Pie object factory and associated tests.
2015-07-30 08:25:06 -04:00
Peter Hamilton e497e1c37c Adding secret data to the Pie object hierarchy
This change adds a SecretData class to the Pie object hierarchy. A unit
test suite covering the class is provided, as are updates to the Pie
object factory and associated tests.
2015-07-30 08:03:33 -04:00
Peter Hamilton ee7a6bc082 Merge pull request #63 from OpenKMIP/feat/add-pie-certificates
Adding certificates to the Pie object hierarchy
2015-07-29 20:56:48 -04:00
Hadi Esiely 078e1015bc Added asymmetric key testing
This test includes tests for testing the creation, destruction, registration, and querying of private and public keys.
2015-07-29 12:18:16 -04:00
Peter Hamilton c9c58fb11b Adding certificates to the Pie object hierarchy
This change adds certificate objects to the Pie object hierarchy,
specifically a generic Certificate class and an X509Certificate
subclass. Unit test suites covering both classes are included. The Pie
object factory is also updated to support Pie and core certificate
conversion.
2015-07-29 07:59:42 -04:00
Peter Hamilton 99d38fcd25 Merge pull request #58 from OpenKMIP/feat/add-pie-client-demos
Adding unit demos for the ProxyKmipClient
2015-07-28 17:02:13 -04:00
Peter Hamilton 58120bc186 Adding unit demos for the Pie ProxyKmipClient
This change adds a new suite of unit demos for the new Pie
ProxyKmipClient. The demos show how to create the ProxyKmipClient and
how to use all of its primary operations. Demo utilities are updated to
support the new suite.
2015-07-28 13:17:31 -04:00
Peter Hamilton 608644b062 Adding integration tests for the Pie ProxyKmipClient
This change adds an integration test suite for the new Pie
ProxyKmipClient, which tests basic CRUD operations for symmetric and
asymmetric keys. An additional pytest fixture is included for the new
client.
2015-07-28 13:03:08 -04:00
Peter Hamilton 7baa31ea51 Adding the Pie ProxyKmipClient
This change adds the Pie ProxyKmipClient, which provides a simplified
version of the original KMIP interface and which wraps the original
client. The ProxyKmipClient supports basic CRUD operations for
symmetric, public, and private keys. A unit test suite for the client is
included.
2015-07-27 13:09:45 -04:00
Peter Hamilton 202e7eac2c Adding Pie client API
This change adds an abstract base class defining the client interface
for all future PyKMIP clients. Required arguments for different
operations are explicitly specified. A basic sanity unit test suite is
included.
2015-07-24 14:58:41 -04:00
Peter Hamilton d3a5177deb Merge pull request #56 from sedukull/propersocketclosing
Shutdown and close the socket properly
2015-07-23 07:30:06 -04:00
Peter Hamilton 81889cd9d8 Adding a Pie ObjectFactory
This change adds an ObjectFactory for the Pie object hierarchy. It
provides easy translation to and from Pie objects to the original core
object hierarchy. The factory is only used by the new Pie client and
should never be used outside of this context. A unit test suite for the
factory is included.
2015-07-22 10:04:49 -04:00
Peter Hamilton 7efcc30430 Merge pull request #55 from OpenKMIP/feat/updating-pie-objects
Updating Pie API key objects
2015-07-22 10:03:42 -04:00
sedukull 4a0b2c4c57 Shutdown and close the socket properly.
Calling close in destructor, helps in case default close() is not called
by consumers.
2015-07-22 23:33:40 +10:00
Peter Hamilton bc703f0757 Updating Pie API key objects
This change makes some minor updates to the Pie key object hierarchy. It
fixes the key subclasses to inherit from Key directly. It adds in
support for the key format type attribute, which is required for
low-level key encoding. It also improves repr and str functionality by
using binascii.hexlify to represent the key values. The corresponding
test suites are updated accordingly to reflect these changes.
2015-07-21 16:03:53 -04:00
Peter Hamilton d6a4da6050 Adding customizable timeout support to the KMIP client
This change adds support for a customizable timeout option for the KMIP
client. The client will stop attempting connections or operations once
the timeout is exceeded instead of waiting for the default system
timeout. The default timeouts is 30 seconds.
2015-07-21 08:54:44 -04:00
Peter Hamilton 93f6c5411f Adding PrivateKey to the Pie object hierarchy
This change adds PrivateKey to the Pie object hierarchy along with a
test suite.
2015-07-02 15:32:18 -04:00
Peter Hamilton 93693c8d4d Adding PublicKey to the Pie object hierarchy
This change adds PublicKey to the Pie object hierarchy along with a test
suite.
2015-07-02 10:51:01 -04:00
Peter Hamilton a1005c43bb Merge pull request #44 from OpenKMIP/feat/add-pie-symmetric-key
Adding SymmetricKey to the Pie object hierarchy
2015-07-02 10:23:57 -04:00
Peter Hamilton 4ff4370c93 Merge pull request #46 from OpenKMIP/feat/add-revoke-demo
Adding a demo for the Revoke operation
2015-07-01 11:03:55 -04:00
Tim Kelsey 6bd311701c Adding various date attribute values 2015-07-01 15:48:11 +01:00
Peter Hamilton 7a9f190ec4 Adding SymmetricKey to the Pie object hierarchy
This change adds SymmetricKey to the Pie object hierarchy along with a
test suite and updates to the other classes and test suites composing
the Pie interface.
2015-07-01 08:38:37 -04:00
Peter Hamilton f22b3f9c60 Merge pull request #43 from callidus/adding-crypto-params
Adding CryptographicParameters construction to attribute values
2015-07-01 07:59:25 -04:00
Peter Hamilton d2dbd8e8c4 Adding a demo for the Revoke operation
This change adds a unit demo for the Revoke operation. The operation
accepts a UID of the KMIP managed object that needs to be revoked, in
addition to a revocation code and message explaining why revocation
needs to occur.
2015-06-30 11:00:04 -04:00
Peter Hamilton 94f8134fcd Merge pull request #41 from callidus/adding-revoke
Adding revoke operation
2015-06-30 10:34:26 -04:00
Tim Kelsey 63e55e3a06 Adding CryptographicParameters construction to attribute values 2015-06-30 11:23:35 +01:00
Tim Kelsey 30ff7e78bf Adding revoke operation 2015-06-26 14:54:23 +01:00
Peter Hamilton ef628b3f0e Adding a demo for the Activate operation
This change adds a unit demo for the Activate operation. The operation
accepts the UID of a KMIP managed object that needs to be activated for
future use.
2015-06-26 09:52:28 -04:00
Peter Hamilton a7e2084385 Merge pull request #33 from callidus/add-activate
Adding the "activate" opperation
2015-06-26 09:39:45 -04:00
Tim Kelsey b1ac997d38 Adding the "activate" opperation 2015-06-26 12:08:24 +01:00
Peter Hamilton b8fe858782 Merge pull request #40 from OpenKMIP/bug/fix-file-handle-for-versions
Fixing bug with dangling file handle when setting __version__
2015-06-25 15:07:06 -04:00
Peter Hamilton e371273457 Fixing bug with dangling file handle when setting __version__
This change fixes a bug whereby a file handle was left unclosed after
being used to dynamically set __version__.
2015-06-25 14:27:31 -04:00
Kelvin Ly 3a2ceab68f Fix a few bugs in Credential object 2015-06-25 12:22:36 -04:00
Peter Hamilton 2ec52ef34d PyKMIP - Release 0.3.3
This update includes several new features and bug fixes:
* Add the core ManagedObject class hierarchy for the new Pie API
* Add updated Boolean primitive implementation and test suite
* Add integration tests for symmetric key creation and registration
* Update demo and client logging to log at the INFO level by default
* Update README with improved testing instructions
* Fix bug causing enumerations to be encoded as signed integers
* Fix bug with mismatched EncodingOption tag
* Fix bug with relative path use for version number handling
* Fix bug with Integer primitive breaking on valid long integer values
2015-06-25 08:58:47 -04:00
Peter Hamilton 8516c52820 Merge pull request #37 from OpenKMIP/bug/fix-integer-accepting-longs
Fixing bug with Integer accepting long values
2015-06-25 07:59:04 -04:00