[Mailman-Developers] How can I run the REST tests against live servers?

Andrew Stuart andrew.stuart at supercoders.com.au
Tue Dec 16 21:02:26 CET 2014


Just to clarify, I didn’t get the tests going against live servers, but I did manage to get my proxy server inserted into the “normal” Mail man REST testing process.

It’s a first step for me in getting authentication stuff going.

Do ASCII diagrams work in email? Your email reader will need to use a fixed width fonr to see this:

              ***normal test configuration***                        
                                                                     
           +-------------------+                                     
           | Mailman test code | +--+ Sends tests (HTTP requests)    
           +--------+----------+    |                                
                    |               |                                
Creates HTTP server |               |                                
then tears it down  |               |                                
                    |               |                                
          +---------+-----------+   |                                
          |                     |   |                                
          | Mailman HTTP server | <-+                                
          |                     |                                    
          +---------------------+                                    
                                                                     
             ***my test configuration***                             
                                                                     
             +-------------------+                                   
             | Mailman test code | +--+ Sends tests (HTTP requests)  
             +--------+----------+    |                              
                      |             +-+-----------------------+      
  Creates HTTP server |             |                         |      
  then tears it down  |             | My proxy server         |      
                      |             |                         |      
            +---------+-----------+ +-+-----------------------+      
            |                     |   |                              
            | Mailman HTTP server | <-+                              
            |                     |                                  
            +---------------------+                                  
                                                                     
                                                                     


On 17 Dec 2014, at 12:08 am, Stephen J. Turnbull <stephen at xemacs.org> wrote:

Andrew Stuart writes:

> Thanks for the guidance - I’ll have to admit I don’t know much
> about how to do such things right so the more guidance you are
> willing to give the better. Most of my code so far has been for me
> and no-one else so my next task is to learn how to write tests
> properly.

Well, since you got the existing tests to run against live servers,
I'm pretty impressed.  It certainly proves the concept"

It might be worthwhile to provide a guide on using them as the last
step of setting up a server, though I'm not sure how easy that would
be (the easiest thing is to say "edit the code", but that's not a
great way to impress new users).

Did they leave any "residue" in the databases that you can detect?
(That's the most important convenience of a one-shot "test server" --
you just tear it down and throw it away.)  On a live server that could
be bad.  Eg, if a test creates a database user with a scripted
password and leaves it behind, anybody that knows the script can
access (some part of) the database!

Steve



More information about the Mailman-Developers mailing list