Skip to content

Commit

Permalink
Added tox support for Py3.6 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvaughn committed Feb 18, 2018
1 parent 25d1922 commit fdd9cb3
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deps:
mkdir -p openapi

clean:
rm -rf agavepy.egg-info build dist && \
rm -rf agavepy.egg-info build dist .cache && \
rm -rf schema openapi && \
cd docs && \
make clean
Expand Down
78 changes: 78 additions & 0 deletions docs/_static/openapi/1.2/apis/actors.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,41 @@
],
"summary": "Send a message to an actor mailbox.",
"type": "ActorMessageRequestResponse"
},
{
"is_websocket": false,
"method": "POST",
"nickname": "sendBinaryMessage",
"notes": "",
"parameters": [
{
"allowMultiple": false,
"description": "The id of the actor.",
"name": "actorId",
"paramType": "path",
"required": true,
"type": "string"
},
{
"allowMultiple": false,
"description": "Optional dictionary of environmental variables",
"name": "environment",
"paramType": "query",
"required": false,
"type": "dict"
},
{
"allowMultiple": false,
"defaultValue": "",
"description": "The description of the message to add.",
"name": "message",
"paramType": "body",
"required": true,
"type": "MessageRequest"
}
],
"summary": "Send a message to an actor mailbox.",
"type": "ActorMessageRequestResponse"
}
],
"path": "/actors/v2/{actorId}/messages"
Expand Down Expand Up @@ -726,6 +761,49 @@
],
"path": "/actors/v2/{actorId}/executions/{executionId}"
},
{
"description": "Get result for a specific execution.",
"has_websocket": false,
"operations": [
{
"is_websocket": false,
"method": "GET",
"nickname": "getOneExecutionResult",
"notes": "",
"parameters": [
{
"allowMultiple": false,
"description": "The id of the actor.",
"name": "actorId",
"paramType": "path",
"required": true,
"type": "string"
},
{
"allowMultiple": false,
"description": "The id of the execution.",
"name": "executionId",
"paramType": "path",
"required": true,
"type": "string"
}
],
"responseMessages": [
{
"code": 403,
"message": "Failed to authenticate the user"
},
{
"code": 500,
"message": "The service was unable to query the actor database"
}
],
"summary": "Get result for a specific actor execution.",
"type": "string"
}
],
"path": "/actors/v2/{actorId}/executions/{executionId}/results"
},
{
"description": "Manage logs for a specific execution.",
"has_websocket": false,
Expand Down
47 changes: 47 additions & 0 deletions docs/agavepy.actors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,39 @@ Response:
"type": "object"
}
sendBinaryMessage: Send a message to an actor mailbox.
======================================================
``agavepy.actors.sendBinaryMessage(actorId, message, environment=None)``

Parameters:
-----------
* **actorId**: The id of the actor. (string)
* **environment**: Optional dictionary of environmental variables (dict)
* **message**: The description of the message to add. (JSON, MessageRequest)


**MessageRequest schema**

.. code-block:: javascript
{
"$id": "http://agavepy.readthedocs.io/en/latest/MessageRequest.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"message": {
"description": "The message to send to the actor.",
"type": "string"
}
},
"required": [],
"title": "AgavePy MessageRequest schema",
"type": "object"
}
Response:
---------
* *A single ActorMessageResponse object*

sendMessage: Send a message to an actor mailbox.
================================================
``agavepy.actors.sendMessage(actorId, body, environment=None)``
Expand Down Expand Up @@ -984,6 +1017,20 @@ Response:
"type": "object"
}
getOneExecutionResult: Get result for a specific actor execution.
=================================================================
``agavepy.actors.getOneExecutionResult(actorId, executionId)``

Parameters:
-----------
* **actorId**: The id of the actor. (string)
* **executionId**: The id of the execution. (string)


Response:
---------
* *None*

getExecutionLogs: Get logs for a specific actor execution.
==========================================================
``agavepy.actors.getExecutionLogs(actorId, executionId)``
Expand Down
2 changes: 1 addition & 1 deletion requirements-py2.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
wsgiref==0.1.2
wsgiref>=0.1.2
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pytest>=2.7.0
python-dateutil>=2.4.2
requests>=2.6.0
six>=1.9.0
websocket-client==0.29.0
websocket-client>=0.29.0
requests_toolbelt>=0.7.1
future>=0.16.0
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tox]
envlist = py27,py36
skipsdist = true

[testenv]
deps=pytest
commands=py.test agavepy/tests/test_agave_basic.py

0 comments on commit fdd9cb3

Please sign in to comment.