diff --git a/ChangeLog b/ChangeLog index 76e6b01c..c96ebc7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,27 @@ CHANGES ======= -* Add oslo.log integration to Deckhand. -* DECKHAND-10: Barbican initial integration +* Temporary change - do not commit +* Initial DB API models implementation +* Added control (API) readme +* [WIP] Implement documents API +* Add kind param to SchemaVersion class +* Change apiVersion references to schemaVersion +* Remove apiVersion attribute from substitutions.src attributes +* Remove apiVersion attribute from substitutions.src attributes +* Update default\_schema with our updated schema definition +* Trivial fix to default\_schema +* Use regexes for jsonschema pre-validation +* Add additional documentation +* Add jsonschema validation to Deckhand +* Initial engine framework +* Fix incorrect comment +* Deckhand initial ORM implementation +* Deckhand initial ORM implementation +* Add oslo.log integration +* DECKHAND-10: Add Barbican integration to Deckhand +* Update ChangeLog +* Update AUTHORS * DECKHAND-2: Design core Deckhand API framework * Oslo config integration (#1) * Add ChangeLog diff --git a/README.rst b/README.rst index 72d8b22d..b24db09d 100644 --- a/README.rst +++ b/README.rst @@ -8,6 +8,6 @@ To run:: $ sudo pip install uwsgi $ virtualenv -p python3 /var/tmp/deckhand $ . /var/tmp/deckhand/bin/activate - $ pip install . + $ sudo pip install . $ python setup.py install - $ uwsgi --http :9000 -w deckhand.deckhand --callable deckhand --enable-threads -L + $ uwsgi --http :9000 -w deckhand.deckhand --callable deckhand_callable --enable-threads -L diff --git a/deckhand/control/README.rst b/deckhand/control/README.rst index e5f4cb50..514d0f19 100644 --- a/deckhand/control/README.rst +++ b/deckhand/control/README.rst @@ -14,3 +14,15 @@ POST - Create a new YAML document and return a revision number. If the YAML document already exists, then the document will be replaced and a new revision number will be returned. + +Testing +------- + +Document creation can be tested locally using: + +.. code-block:: console + + curl -i -X POST localhost:9000/api/v1.0/documents \ + -H "Content-Type: application/yaml" \ + --data-binary "@deckhand/tests/unit/resources/sample.yaml" + diff --git a/deckhand/control/documents.py b/deckhand/control/documents.py index 69858d7a..1b47a136 100644 --- a/deckhand/control/documents.py +++ b/deckhand/control/documents.py @@ -56,12 +56,15 @@ class DocumentsResource(api_base.BaseResource): # Validate the document before doing anything with it. try: + LOG.debug(document) + LOG.debug('fopobar') doc_validation = document_validation.DocumentValidation(document) except deckhand_errors.InvalidFormat as e: return self.return_error(resp, falcon.HTTP_400, message=e) try: - migration = documents.Document.create() + LOG.debug('Calling Document.create()') + document = documents.Document.create() except Exception: pass