Commit Graph

6 Commits

Author SHA1 Message Date
David Moreau Simard 68cbbe24bc First iteration of callback using API
- Remove mockdata.py (using the callback is better)
- Add first iteration of callback
  Note: This will eventually be moved, it's here for simplicity
- Add test playbook/role to exercise the callback

Note: The callback will be moved to ara-plugins

Change-Id: I8f590be4cfafd4714f40f4165e2973cb803b8756
2018-06-20 12:14:56 +00:00
Guillaume Vincent 17f6c9eca5
Refactor django models
- Turns out that some datetime fields should actually use timezone.now
- Move file/filecontent out of a relationship with playbooks
- Add many/many relationships for files/filecontents
- Add some tests

Change-Id: I2e83c0a584b49069e423a9ec8c2c9025a52ea7ef
2018-03-29 12:36:35 -04:00
Guillaume Vincent 69cc8dcac1
Fix compression, date fields and add some tests
- Issue with compression due to lack of json.dumps
- Use "auto_now_add=True" instead of "django.utils.timezone.now"
- More tests

Change-Id: I7447750b843d1622db5489e1045592945be1d090
2018-03-29 12:36:33 -04:00
David Moreau Simard 167fc26311
Squashed general improvements
This is a squash of several general improvements like:

- Add and fix docstrings
- Add new task/files endpoints
- Set up file and content compression/decompression
- Try to get serializers work the way we want them to

Change-Id: I52ba5b31e9d225704ed271ede843f3d4a6b468b4
2018-03-29 12:36:32 -04:00
David Moreau Simard 23fbf95672
Add a script to create mock data
It's convenient to have a script to easily add mock data to test the
API and model with. Let's do that.

Change-Id: I0f108b19d35280faa472850bdeb9ac83f3faa505
2018-03-29 12:36:29 -04:00
Guillaume Vincent 42b04c5674
Test a standalone script to use Django ORM without running webserver
The API server needs to be an optional component. It must not be
required to run ARA. This is just a proof of concept of the internal
Django client.

Change-Id: Icf76e0d8cf65401536f858e29236ee913f25b4b1
2018-03-29 12:36:18 -04:00