~bac/charms/precise/juju-gui/constraint-parsing

« back to all changes in this revision

Viewing changes to tests/test_backends.py

  • Committer: Brad Crittenden
  • Date: 2013-11-15 18:51:28 UTC
  • mfrom: (125.1.15 increment-deployments)
  • Revision ID: bac@canonical.com-20131115185128-rphg06r069p5tnzb
After deploying a bundle increment counter.

The guiserver will make a GET request to the deployment counter incrementer
URL for the bundle.  This required accepting the bundle ID in the
Deployer/Import path.

Note neither the GUI nor quickstart have been updated to pass this value yet.

The charmworldurl is also now passed to the server via the command line.

QA: just deploy your favorite bundle and see that it works as it should.  You
can observe the bundle page in charmworld and see the counts remain at 0.

R=frankban
CC=
https://codereview.appspot.com/26740043

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
        config = {
203
203
            'builtin-server': True,
204
204
            'builtin-server-logging': 'info',
205
 
            'charmworld-url': 'http://charmworld.example.com',
 
205
            'charmworld-url': 'http://charmworld.example.com/',
206
206
            'command-log-file': self.command_log_file,
207
207
            'default-viewmode': 'sidebar',
208
208
            'ga-key': 'my-key',
437
437
        mocks.start_builtin_server.assert_called_once_with(
438
438
            mocks.compute_build_dir(), self.ssl_cert_path,
439
439
            config['serve-tests'], config['sandbox'],
440
 
            config['builtin-server-logging'], not config['secure'])
 
440
            config['builtin-server-logging'], not config['secure'],
 
441
            config['charmworld-url'])
441
442
        self.assertFalse(mocks.start_haproxy_apache.called)
442
443
 
443
444
    def test_start_go_builtin(self):
455
456
        mocks.start_builtin_server.assert_called_once_with(
456
457
            mocks.compute_build_dir(), self.ssl_cert_path,
457
458
            config['serve-tests'], config['sandbox'],
458
 
            config['builtin-server-logging'], not config['secure'])
 
459
            config['builtin-server-logging'], not config['secure'],
 
460
            config['charmworld-url'])
459
461
        self.assertFalse(mocks.start_haproxy_apache.called)
460
462
 
461
463
    def test_stop_python_legacy(self):