Commit Graph

151 Commits

Author SHA1 Message Date
Dorian da5a5c5d97 Add proxy view for UI tests.
Fix rendering of page and site.
2017-04-21 23:51:23 -04:00
Dorian e292f59c8e Update UI tests and make view more regular. 2017-04-20 21:51:19 -04:00
Dorian 688ec481f1 Attempt to add status change if no site found. 2017-04-17 17:42:43 -04:00
Dorian 965723f87b Add basic tests to make sure site landing page works as expected. 2017-04-17 08:34:01 -04:00
Dorian 63abecc4a8 Improve code for the creation of a Rookeries app. 2017-04-13 17:38:42 -04:00
Dorian cf071671dd Add quiet logging option when creating an application for testing and utilities. 2017-04-13 08:45:31 -04:00
Dorian f4d55c01dc Add unit tests to test for API cases that fall through. 2017-04-12 17:22:50 -04:00
Dorian b9ea296187 Fix some of the frontend issues when running the tests. 2017-04-11 08:40:46 -04:00
Dorian 7b8dec7915 Fix skipping of UI test to make builds green again. 2017-04-10 17:35:02 -04:00
Dorian 70a3e5fcdb Attempt to fix UI tests and improving multi-site setup. 2017-04-10 08:53:02 -04:00
Dorian 0cc2fbb21c Improve testing setup for UI. 2017-04-10 08:15:01 -04:00
Dorian 4eb4943e2d Make page view workable and fix tests. 2017-04-07 22:34:18 -04:00
Dorian 33d02212cf Initial work to get link working and queryable. 2017-04-07 09:00:25 -04:00
Dorian b2861b58fb Add link between a site and its landing page. 2017-04-07 08:28:12 -04:00
Dorian 5d35f001d3 Improve setup of user tests. 2017-04-06 18:20:04 -04:00
Dorian b88c805c47 Update creation of user tests to use common auth token fixture.
Fix bug with creating users via post.
2017-04-06 00:17:31 -04:00
Dorian 23adbe5e21 Extract authentication tokens creation for tests. 2017-04-05 23:44:35 -04:00
Dorian 17377f4c46 Extract common assertions from tests. 2017-04-05 20:59:19 -04:00
Dorian 701abc9530 Merge together sample and response tuples together for user and site tests. 2017-04-05 18:12:06 -04:00
Dorian 499724732f Merged in issue-30-site-management (pull request #24)
Issue 30 site management

* Initial steps in testing setup of site.

* Build out initial tests for accessing a site.

* Update view routes for retrieving the sites.

* Change linkage of site components to the site.
    Create ability to create a test site.

* Add links and self link to the site response.

* Break site components in blocks and tokens.

* Fix fetching of an existing site.

* Add additional tests to test site access against different types of users.

* Add support for site deletion.

* Add support for site creation.

* Build out support for site modification.

* Fix issue with testing of modified sites.

* Improve readability of test data and tests.

Approved-by: Dorian Pula <dorian.pula@amber-penguin-software.ca>
2017-04-05 21:43:24 +00:00
Dorian dd20a2b60d Fix failing web test, even if in a flaky manner. 2017-03-26 21:34:08 -04:00
Dorian fa01196ae9 Get working functional web tests without resorting to using SauceLabs. 2017-03-26 21:26:52 -04:00
Dorian a3b4f609a0 Flake8 fix. 2017-03-24 09:59:54 -04:00
Dorian f7371e52f0 Remove nightwatch and use basic setup for pybdd-splinter webtests. 2017-03-24 09:06:13 -04:00
Dorian a02beb5d16 Add ability to spin up sauceconnect separately.
Add initial work to support  a remote browser.
2017-03-23 08:57:28 -04:00
Dorian 216108d335 Add check to verify sauceconnect credentials set before running UI tests. 2017-03-22 09:00:11 -04:00
Dorian 5dcf0a1e11 Make a basic setup of the functional tests using pytest-splinter. 2017-03-21 23:23:48 -04:00
Dorian ffb5348a4d Update copyright notices and changelog. 2017-03-16 08:34:57 -04:00
Dorian 7164ed69c1 Fix API tests. 2017-03-14 18:03:52 -04:00
Dorian 7750018f89 Migrate webapp to top level part of project.
Fix Dockerfile build.
2017-03-14 16:02:42 -04:00
Dorian e64f63f5df Bring up API to top level part of project.
Remove references to webapp in build setup.
2017-03-14 09:09:16 -04:00
Dorian 76c177aa2e Readd tasks back into the project. 2016-09-06 08:56:33 -04:00
Dorian 24b35834e3 Split up project into separate API and frontend server components. 2016-09-06 08:37:41 -04:00
Dorian d2b9cd0c1c Fix failing server tests due to changes in API. 2016-08-13 23:52:07 -04:00
Dorian ca52c635e0 Fix docker bootstrap with existing database.
Add document type check to document saving.
2016-08-13 23:40:29 -04:00
Dorian 2f04c59121 Update the samples and documentation to fully test out the rendering engine. 2016-08-13 20:58:41 -04:00
Dorian 97904e2667 Fix style issues and improve code overall. 2016-08-12 18:08:21 -04:00
Dorian ff7bea3ddc Fix unit server tests. 2016-08-09 00:02:18 -04:00
Dorian 2e12765147 Fix test setup for client. 2016-08-08 22:23:06 -04:00
Dorian 1476e9292c Migrate to using Mocha directly with ES6 and React JSX. 2016-08-05 23:59:07 -04:00
Dorian 224bc64054 Add Karma test coverage. 2015-11-18 07:58:03 -05:00
Dorian 6c731f3009 Fix JS unit tests to pass, and add into overall test setup. 2015-11-16 18:02:34 -05:00
Dorian 01a862ca10 Add support for configuring port and server name of feature to test.
Add initial support for changing web drivers and remote web drivers.
2015-11-14 13:05:44 -05:00
Dorian fadd72c49e Remove header comments for more compact module docstring.
Remove unused models and decorators.
2015-10-23 08:02:25 -04:00
Dorian 75e765be62 Add verbosity to existing tests and fix task related tests. 2015-10-21 08:21:17 -04:00
Dorian 35b37ab548 Add initial setup of web tests for Rookeries. 2015-10-19 18:02:57 -04:00
Dorian e0e4cad575 Fix paths in JS unit tests.
Remove JS end-to-end tests to replace with newer bdd style tests.
2015-10-15 08:56:14 -04:00
Dorian 32c36fc329 Remove redundant files.
Change routes for tests and client coffeescript source files.
2015-10-14 18:17:46 -04:00
Dorian 4231771714 Remove user module since Rookeries will not support multiple users for the time being,
Rework security and authentication modules to reuse existing code.
Remove unnecessary configurations.
2015-09-26 21:50:43 -04:00
Dorian 9b3ea2430c Simplifying the serving of a landing page.
Change API route for serving documents.
2015-09-25 14:25:31 -04:00
Dorian 22393d1f45 Move sample site into documentation.
Update test and fixtures to work with new setup.
Enable Markdown support in Sphinx documentation.
2015-09-01 08:43:26 -04:00
Dorian 359c4b27ba Add support for CouchDB in the Vagrant dev box.
Allow for easy rebuilding of the Vagrant box.
Update jq dependency based on installation issues.
2015-08-22 14:18:02 -04:00
Dorian e966832b7c Add context manager for changing the environment during tests.
Fix up tests to run correctly.
2015-08-20 21:29:38 -04:00
Dorian a8fa826bff Fix up and enable tests involving database content. 2015-08-20 19:03:23 -04:00
Dorian 85dd2f2912 Move test data into sample fixture.
Add creation of test database when running server tests.
Fix up documentation to be more explicit about the license.
2015-08-20 09:35:24 -04:00
Dorian 4cbfe77772 Initial transition to using CouchDB instead of simple Markdown files. 2015-08-16 15:24:06 -04:00
Dorian eb6c950efc Add tests for creating and getting the databases.
Add missing test coverage for report.
2015-08-10 08:07:46 -04:00
Dorian b1e61c9a66 Improve the test setup for the database calls.
Add in dependency on pytest-mock.
2015-08-06 20:04:49 -04:00
Dorian bc52014c7b Attempt to fix get database tests. 2015-08-05 07:39:06 -04:00
Dorian 64d190c2d2 Initial setup of CouchDB database connection. 2015-08-04 22:09:24 -04:00
Dorian a2841ee765 Move out file system data store into a future file importer.
Refashion data store to work exclusively with CouchDB database.
2015-07-30 08:30:26 -04:00
Dorian a88c0fd747 Add extension to file system data store. 2015-07-29 17:46:12 -04:00
Dorian c695daed44 Fix assertions for tests in file system data store.
Fix spelling of data store.
2015-07-28 20:59:07 -04:00
Dorian addad5acc4 Fix assertions for tests in file system datastore. 2015-07-28 20:44:38 -04:00
Dorian ff554affd7 Add unit tests for the file system datastore with fixes to datastore as well. 2015-07-28 13:33:13 -04:00
Dorian 88cca6b935 Add test for landing page resolution in journal entry API. 2015-07-27 19:29:27 -04:00
Dorian bd6e541cc2 Add rough test serving markdown content.
Switch over to using pytest instead of nose for tests.
2015-07-27 08:44:55 -04:00
Dorian 9cc05d5c79 Remove SQLAlchemy related database code.
Add in CouchDB and JSON dependencies.
2015-07-23 07:22:42 -04:00
Dorian b25aedede8 Add additional unit test for handling date suffixes. 2015-07-16 17:55:29 -04:00
Dorian 655195afe4 Add support for deployable package with various suffixes. 2015-07-16 08:50:56 -04:00
Dorian cdcc88f81e Update failing task tests. 2015-06-19 09:02:19 -04:00
Dorian 67d4b25948 Remove client frontend code since it was extracted into a separate component. 2015-06-12 07:36:31 -04:00
Dorian 1a7773eae7 Setup client side code as separate npm module.
Add support the new temporary setup.
2015-06-08 18:06:01 -04:00
Dorian 451d00fc4d Attempt to unit test JournalMarkdownView via rewire. 2015-06-05 08:09:43 -04:00
Dorian 1744d55817 Add loading defaults test for React JournalMarkdownView. 2015-06-04 08:08:30 -04:00
Dorian 001f9441ec Fix Karma setup and tests for theme switcher.
Remove Chrome launcher for tests.
2015-06-02 09:15:41 -04:00
Dorian a5e9b00554 Configure karma to correctly pick up test and source files in project. 2015-06-01 08:46:17 -04:00
Dorian 666011f170 Attempt to setup Karma to work with current client setup. 2015-06-01 07:57:00 -04:00
Dorian 76dbd4815a Remove protractor tests and configuration. 2015-05-29 09:37:35 -04:00
Dorian 3177c6430f Remove bower dependencies.
Setup karma to work with browserify setup.
2015-05-08 17:15:13 -04:00
Dorian 66d83d51e5 Add Angular Bootstrap as a Karma dependency to fix client side tests. 2015-05-01 09:21:44 -04:00
Dorian 55eac5d9d7 Fix up circular imports for authentication. 2015-05-01 07:41:57 -04:00
Dorian 31e5c3f195 Refactor out checking of passwords out of user controllers into separate security module. 2015-05-01 07:36:42 -04:00
Dorian 58683d7282 Add unit test for checking passwords.
Skip tests while developing API for security authentication module.
2015-04-09 14:08:21 -04:00
Dorian bf851b68e8 Fix PEP8 style test.
Remove Chrome from Karma tests.
Attempt to make protractor tests more flexible and reliable.
2015-04-01 11:28:09 -04:00
Dorian 15a366739c Add environment configuration via flask_appconfig to make rookeries easier to configure as 12 Factor webapp. 2014-12-11 08:49:07 -05:00
Dorian 322577ff73 Move to using a Blueprint for Rookeries. 2014-11-12 08:17:24 -05:00
Dorian 85af959833 Migrate app packaging helper into an invoke function.
Add packaging folders to gitignore.
2014-11-10 07:31:43 -05:00
Dorian 26840454e9 Separate invoke task and deployment functionality into a separate tasks module.
Separate task tests from main rookeries tests.
2014-11-08 15:03:53 -05:00
Dorian ee56024ed9 Add support for getting generated package name for deployment.
Add header comment to tests.
2014-11-07 18:08:07 -05:00
Dorian c745aba8ac Migrate toward using a more structure setup for deployments. 2014-11-06 07:25:43 -05:00
Dorian 0ead5bc73c Add app status endpoint.
Improve server unit tests.
2014-10-31 08:09:15 -04:00
Dorian 9794f2d504 Add JSDocs to all coffeescript modules.
Fix up karma and protractor modules.
2014-10-30 08:07:44 -04:00
Dorian c72c29cf08 Setup of protractor tests.
Organization of client tests.
2014-10-29 23:22:10 -04:00
Dorian 4e886a6955 Add unit test coverage for switch theme controller.
Improve code for handling out of bounds theme indexes.
2014-10-29 07:56:51 -04:00
Dorian bf6a0454b4 Remove comment and "fix" injection of controller into client unit test. 2014-10-28 09:32:59 -04:00
Dorian 73b18bfec8 Add tests for switching themes client controller.
Test does not perform exactly as expected.
2014-10-28 07:28:44 -04:00
Dorian 2c2389c355 Add Chai for assertion library.
Create first working test of AngularJS controller.
2014-10-27 09:20:53 -04:00
Dorian b6121b72df Initial setup for a AngularJS unit test. 2014-10-24 11:55:14 -04:00
Dorian cad3702ef0 Setup infrastructure to run JS unit tests for the client. 2014-10-23 23:35:07 -04:00