~juju-deployers/juju-deployer/trunk

« back to all changes in this revision

Viewing changes to deployer/tests/test_deployment.py

  • Committer: mergebot at canonical
  • Author(s): "Tom Haddon"
  • Date: 2021-09-17 13:19:08 UTC
  • mfrom: (222.1.1 juju-deployer)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20210917131908-9r2pnxlke7j21epr
Update diff to deal correctly with include files lp#1892423

Reviewed-on: https://code.launchpad.net/~mthaddon/juju-deployer/lp-1892423/+merge/408802
Reviewed-by: Benjamin Allot <benjamin.allot@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        self.assertEqual(d.get_service('newrelic').config, {'key': 'abc'})
68
68
        self.assertEqual(
69
69
            base64.b64decode(d.get_service('blog').config['wp-content']),
70
 
            b"HelloWorld")
 
70
            b"This content needs to be long enough to require it to be wrapped onto two\n"
 
71
            b"lines when we convert it to base64.\n")
71
72
 
72
 
        # TODO verify include-file
 
73
        # Verify include-file (we'll just verify the first part of it)
 
74
        self.assertEqual(
 
75
            d.get_service('haproxy').config['services'][:20],
 
76
            '- service_name: blog')
73
77
 
74
78
        # Verify relations
75
79
        self.assertEqual(