095629f11424b6d00b263383b1bdefc37d266375,tests/providers/aws/aws_managed_relational_db_test.py,AwsManagedRelationalDbTestCase,testNoHighAvailability,#AwsManagedRelationalDbTestCase#,107

Before Change


      self.assertIn("--master-user-password=fakepassword", command_string)

  def testNoHighAvailability(self):
    with self._PatchCriticalObjects() as issue_command:
      db = self.createManagedDbFromSpec(self.createSpecDict())
      db._Create()
      self.assertEquals(issue_command.call_count, 1)
      command_string = " ".join(issue_command.call_args[0][0])

      self.assertNotIn("--multi-az", command_string)

  def testHighAvailability(self):
    with self._PatchCriticalObjects() as issue_command:
      spec = self.createSpecDict()
      spec["high_availability"] = True

After Change


    self.assertIn("--engine=mysql", command_string)
    self.assertIn("--master-user-password=fakepassword", command_string)

  def testNoHighAvailability(self):
    spec_dict = {
        "multi_az": False,
    }
    command_string = self.create(spec_dict)

    self.assertNotIn("--multi-az", command_string)

  def testHighAvailability(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 15

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 095629f11424b6d00b263383b1bdefc37d266375
Time: 2017-10-12
Author: gareth-ferneyhough@users.noreply.github.com
File Name: tests/providers/aws/aws_managed_relational_db_test.py
Class Name: AwsManagedRelationalDbTestCase
Method Name: testNoHighAvailability


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 095629f11424b6d00b263383b1bdefc37d266375
Time: 2017-10-12
Author: gareth-ferneyhough@users.noreply.github.com
File Name: tests/providers/aws/aws_managed_relational_db_test.py
Class Name: AwsManagedRelationalDbTestCase
Method Name: testCreate


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 095629f11424b6d00b263383b1bdefc37d266375
Time: 2017-10-12
Author: gareth-ferneyhough@users.noreply.github.com
File Name: tests/providers/aws/aws_managed_relational_db_test.py
Class Name: AwsManagedRelationalDbTestCase
Method Name: testDiskWithIops


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 095629f11424b6d00b263383b1bdefc37d266375
Time: 2017-10-12
Author: gareth-ferneyhough@users.noreply.github.com
File Name: tests/providers/aws/aws_managed_relational_db_test.py
Class Name: AwsManagedRelationalDbTestCase
Method Name: testUnspecifiedDatabaseVersion


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 095629f11424b6d00b263383b1bdefc37d266375
Time: 2017-10-12
Author: gareth-ferneyhough@users.noreply.github.com
File Name: tests/providers/aws/aws_managed_relational_db_test.py
Class Name: AwsManagedRelationalDbTestCase
Method Name: testSpecifiedDatabaseVersion


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 095629f11424b6d00b263383b1bdefc37d266375
Time: 2017-10-12
Author: gareth-ferneyhough@users.noreply.github.com
File Name: tests/providers/aws/aws_managed_relational_db_test.py
Class Name: AwsManagedRelationalDbTestCase
Method Name: testHighAvailability