Exemplo n.º 1
0
 def testAlwaysExists(self):
     kwargs = copy.copy(_BASE_SNOWFLAKE_SPEC)
     spec = benchmark_config_spec._EdwServiceSpec('NAME', **kwargs)
     snowflake_local = snowflake.Snowflake(spec)
     self.assertTrue(snowflake_local._Exists())
Exemplo n.º 2
0
 def testRunCommandHelper(self):
     kwargs = copy.copy(_BASE_SNOWFLAKE_SPEC)
     spec = benchmark_config_spec._EdwServiceSpec('NAME', **kwargs)
     snowflake_local = snowflake.Snowflake(spec)
     self.assertEqual('--connection fake_connection',
                      snowflake_local.RunCommandHelper())
Exemplo n.º 3
0
 def testCreateRequestError(self):
     kwargs = copy.copy(_BASE_SNOWFLAKE_SPEC)
     spec = benchmark_config_spec._EdwServiceSpec('NAME', **kwargs)
     snowflake_local = snowflake.Snowflake(spec)
     with self.assertRaises(NotImplementedError):
         snowflake_local._Create()
Exemplo n.º 4
0
 def testInstallAndAuthenticateRunner(self):
     kwargs = copy.copy(_BASE_SNOWFLAKE_SPEC)
     spec = benchmark_config_spec._EdwServiceSpec('NAME', **kwargs)
     snowflake_local = snowflake.Snowflake(spec)
     snowflake_local.InstallAndAuthenticateRunner(
         vm=FakeRemoteVMCreateLambdaRole(), benchmark_name='fake_benchmark')