Download & Extend

Create testing framework for Deployment module

Project:Deployment
Version:7.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Main idea is to emulate behavior of several servers and communication between them in the sandbox.

Comments

#1

Status:active» needs review

Here is patch that creates two sandboxes (server1 and server2). Also simple test is included to create a node in each server and show that it it accessible.

While we cleanup all prefixed tables and temporary folders batch operations still throws not success so this should be fixed in some way. But basically code attached is in working condition :)

AttachmentSizeStatusTest resultOperations
1214626-deploy-testing-framework.patch0 bytesIgnored: Check issue status.NoneNone

#2

resubmitting the patch

AttachmentSizeStatusTest resultOperations
1214626-deploy-testing-framework.patch4.84 KBIgnored: Check issue status.NoneNone

#3

Status:needs review» needs work

Updated patch that does not produce any errors :)

Next step is to set up servers and try to establish connection between them.

AttachmentSizeStatusTest resultOperations
1214626-deploy-testing-framework-no-errors.patch4.97 KBIgnored: Check issue status.NoneNone

#4

:)

#5

Status:needs work» needs review

Finally first test running completely!

It creates node on first server and deploys it to the second comparing the titles.

AttachmentSizeStatusTest resultOperations
1214626-deploy-first-test.patch8.41 KBIgnored: Check issue status.NoneNone

#6

Status:needs review» fixed

This testing framework, alongside with some abstractions and improvements, is now committed! Thanks guys for opening up my eyes to how the internals of Drupal's testing framework works (and how you can walk limbo with it) :)

Awesome!

#7

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.