~makyo/juju-gui/rel-prep

« back to all changes in this revision

Viewing changes to test/test_fakebackend.js

  • Committer: Benjamin Saller
  • Author(s): Benjamin Saller
  • Date: 2013-10-10 17:06:41 UTC
  • mfrom: (1108.2.4 restore-bundle-annotations)
  • Revision ID: bcsaller@gmail.com-20131010170641-igy2gv5i6qsinl4s
Fix annotations on go backend

Fix annotation roundtrips with go backend
      Splits how we prepare deltas for py/go juju fakebackends
      Change test expectations to merge updateAnnotation calls
  
  Fix import of constraints
  Fix export of undefined/default values
  
  Adjust simulator unit count rate of change.

R=benjamin.saller, gary.poster, jeff.pihach
CC=
https://codereview.appspot.com/14485046

Show diffs side-by-side

added added

removed removed

Lines of Context:
551
551
 
552
552
            // Verify config.
553
553
            var wordpress = fakebackend.db.services.getById('wordpress');
 
554
            var mysql = fakebackend.db.services.getById('mysql');
554
555
            assert.equal(wordpress.get('config.engine'), 'nginx');
555
556
            assert.equal(wordpress.get('config.tuning'), 'single');
 
557
 
 
558
            // Constraints
 
559
            var constraints = mysql.get('constraints');
 
560
            assert.equal(constraints['cpu-power'], '2', 'wrong cpu power');
 
561
            assert.equal(constraints['cpu-cores'], '4', 'wrong cpu cores');
556
562
            done();
557
563
          }).then(undefined, done);
558
564
    });