/tools/treble/build/sandbox/ |
D | config_test.py | 87 cfg = config.factory(None) 88 self.assertIsNone(cfg) 94 cfg = config.factory(test_config.name) 96 cfg.get_available_build_targets(), 111 cfg = config.factory(test_config.name) 113 self.assertSetEqual(cfg.get_tags('android_target_1'), set()) 115 cfg.get_tags('android_target_2'), set(['cool', 'hot', 'warm'])) 117 cfg.get_tags('build_target_2'), set(['cool', 'hot', 'dry'])) 118 self.assertSetEqual(cfg.get_tags('android_target_3'), set()) 120 self.assertFalse(cfg.has_tag('android_target_1', 'cool')) [all …]
|
/tools/acloud/public/ |
D | config_test.py | 129 self.cfg = config.AcloudConfig(usr_cfg, internal_cfg) 135 cfg = config.AcloudConfigManager.LoadConfigFromProtocolBuffer( 137 self.assertEqual(cfg.service_account_name, 139 self.assertEqual(cfg.service_account_private_key_path, 141 self.assertEqual(cfg.service_account_json_private_key_path, 143 self.assertEqual(cfg.project, "fake-project") 144 self.assertEqual(cfg.zone, "us-central1-f") 145 self.assertEqual(cfg.machine_type, "n1-standard-1") 146 self.assertEqual(cfg.network, "default") 147 self.assertEqual(cfg.ssh_private_key_path, "/path/to/ssh/key") [all …]
|
D | device_driver_test.py | 36 cfg = mock.MagicMock() 37 cfg.service_account_name = "fake@service.com" 38 cfg.service_account_private_key_path = "/fake/path/to/key" 39 cfg.zone = "fake_zone" 40 cfg.disk_image_name = "fake_image.tar.gz" 41 cfg.disk_image_mime_type = "fake/type" 42 cfg.storage_bucket_name = "fake_bucket" 43 cfg.extra_data_disk_size_gb = 4 44 cfg.precreated_data_image_map = { 48 cfg.extra_scopes = None [all …]
|
D | device_driver.py | 58 def __init__(self, cfg, devices=None): argument 60 self._cfg = cfg 61 credentials = auth.CreateCredentials(cfg) 66 cfg, credentials) 337 def CreateGCETypeAVD(cfg, argument 373 credentials = auth.CreateCredentials(cfg) 374 compute_client = android_compute_client.AndroidComputeClient(cfg, 377 common_operations.CreateSshKeyPairIfNecessary(cfg) 378 device_pool = AndroidVirtualDevicePool(cfg) 386 extra_data_disk_size_gb=cfg.extra_data_disk_size_gb, [all …]
|
/tools/asuite/aidegen/lib/ |
D | config_unittest.py | 63 cfg = config.AidegenConfig() 64 cfg._load_aidegen_config() 68 cfg = config.AidegenConfig() 69 cfg._load_aidegen_config() 81 cfg = config.AidegenConfig() 84 cfg._load_aidegen_config() 89 cfg._load_aidegen_config() 99 cfg = config.AidegenConfig() 100 cfg._save_aidegen_config() 111 cfg = config.AidegenConfig() [all …]
|
/tools/treble/hacksaw/codebase/ |
D | codebase.go | 37 cfg := config.GetConfig() 38 if _, ok := cfg.Codebases[name]; ok { 39 return cfg, fmt.Errorf("Codebase %s already exists", name) 41 cfg.Codebases[name] = absPath 42 return cfg, err 47 cfg := config.GetConfig() 48 _, ok := cfg.Codebases[remove] 52 delete(cfg.Codebases, remove) 53 if cfg.DefaultCodebase == remove { 54 cfg.DefaultCodebase = "" [all …]
|
/tools/acloud/public/actions/ |
D | create_goldfish_action.py | 63 cfg, argument 93 self.credentials = auth.CreateCredentials(cfg) 96 cfg, self.credentials) 100 self._cfg = cfg 103 self._blank_data_disk_size_gb = cfg.extra_data_disk_size_gb 104 self._extra_scopes = cfg.extra_scopes 117 kernel_build_target or cfg.kernel_build_target, kernel_build_id, 202 def _FetchBuildIdFromFile(cfg, build_target, build_id, filename): argument 218 auth.CreateCredentials(cfg)) 232 cfg=None, argument [all …]
|
D | create_cuttlefish_action_test.py | 85 cfg = mock.MagicMock() 86 cfg.service_account_name = "fake@service.com" 87 cfg.service_account_private_key_path = "/fake/path/to/key" 88 cfg.zone = "fake_zone" 89 cfg.disk_image_name = "fake_image.tar.gz" 90 cfg.disk_image_mime_type = "fake/type" 91 cfg.ssh_private_key_path = "" 92 cfg.ssh_public_key_path = "" 93 cfg.stable_host_image_name = self.STABLE_HOST_IMAGE_NAME 94 cfg.stable_host_image_project = self.STABLE_HOST_IMAGE_PROJECT [all …]
|
D | common_operations_test.py | 84 cfg = mock.MagicMock() 85 cfg.service_account_name = "fake@service.com" 86 cfg.service_account_private_key_path = "/fake/path/to/key" 87 cfg.zone = "fake_zone" 88 cfg.disk_image_name = "fake_image.tar.gz" 89 cfg.disk_image_mime_type = "fake/type" 90 cfg.ssh_private_key_path = "" 91 cfg.ssh_public_key_path = "" 92 return cfg 103 cfg = self._CreateCfg() [all …]
|
D | create_cuttlefish_action.py | 54 def __init__(self, cfg, build_target, build_id, branch=None, argument 62 self.credentials = auth.CreateCredentials(cfg) 64 if cfg.enable_multi_stage: 66 cfg, self.credentials, boot_timeout_secs, ins_timeout_secs, 70 cfg, self.credentials) 74 self._cfg = cfg 79 self._blank_data_disk_size_gb = cfg.extra_data_disk_size_gb 80 self._extra_scopes = cfg.extra_scopes 90 kernel_build_target or cfg.kernel_build_target, kernel_build_id, 199 def CreateDevices(cfg, argument [all …]
|
D | common_operations.py | 51 def CreateSshKeyPairIfNecessary(cfg): argument 60 if not cfg.ssh_public_key_path: 68 elif cfg.ssh_public_key_path and not cfg.ssh_private_key_path: 74 elif cfg.ssh_public_key_path and cfg.ssh_private_key_path: 75 utils.CreateSshKeyPairIfNotExist(cfg.ssh_private_key_path, 76 cfg.ssh_public_key_path) 211 def CreateDevices(command, cfg, device_factory, num, avd_type, argument 247 CreateSshKeyPairIfNecessary(cfg) 282 rsa_key_file=cfg.ssh_private_key_path, 287 extra_args_ssh_tunnel=cfg.extra_args_ssh_tunnel) [all …]
|
D | create_goldfish_action_test.py | 74 self.avd_spec.cfg = self._CreateCfg() 85 cfg = mock.MagicMock() 86 cfg.service_account_name = "fake@service.com" 87 cfg.service_account_private_key_path = "/fake/path/to/key" 88 cfg.zone = "fake_zone" 89 cfg.ssh_private_key_path = "" 90 cfg.ssh_public_key_path = "" 91 cfg.stable_goldfish_host_image_name = self.GOLDFISH_HOST_IMAGE_NAME 92 cfg.stable_goldfish_host_image_project = self.GOLDFISH_HOST_IMAGE_PROJECT 93 cfg.emulator_build_target = self.EMULATOR_BUILD_TARGET [all …]
|
/tools/treble/hacksaw/workspace/ |
D | workspace.go | 43 cfg := config.GetConfig() 44 _, ok := cfg.Codebases[codebaseName] 48 if _, ok := cfg.Workspaces[workspaceName]; ok { 51 cfg.Workspaces[workspaceName] = codebaseName 72 cfg := config.GetConfig() 73 codebaseName, ok := cfg.Workspaces[workspaceName] 93 cfg := config.GetConfig() 94 _, ok := cfg.Workspaces[workspaceName] 104 cfg := config.GetConfig() 105 codebase, ok := cfg.Workspaces[workspaceName] [all …]
|
/tools/acloud/list/ |
D | list.py | 108 def GetRemoteInstances(cfg): argument 119 credentials = auth.CreateCredentials(cfg) 120 compute_client = gcompute_client.ComputeClient(cfg, credentials) 202 def GetInstances(cfg): argument 211 return GetRemoteInstances(cfg) + GetLocalInstances() 229 def ChooseInstances(cfg, select_all_instances=False): argument 243 instances = GetInstances(cfg) 249 def ChooseOneRemoteInstance(cfg): argument 264 instances_list = GetCFRemoteInstances(cfg) 357 def GetInstancesFromInstanceNames(cfg, instance_names): argument [all …]
|
D | list_test.py | 40 cfg = mock.MagicMock() 51 instances_list = list_instance.GetInstancesFromInstanceNames(cfg, instance_names) 56 instances_list = list_instance.GetInstancesFromInstanceNames(cfg, instance_names) 67 cfg=cfg, 72 cfg = mock.MagicMock() 78 self.assertEqual(list_instance.ChooseOneRemoteInstance(cfg), expected_instance) 83 list_instance.ChooseOneRemoteInstance(cfg) 91 self.assertEqual(list_instance.ChooseOneRemoteInstance(cfg), expected_instance)
|
/tools/acloud/delete/ |
D | delete.py | 46 def DeleteInstances(cfg, instances_to_delete): argument 78 return DeleteRemoteInstances(cfg, remote_instance_list, delete_report) 86 def DeleteRemoteInstances(cfg, instances_to_delete, delete_report=None): argument 100 if not cfg.SupportRemoteInstance(): 114 cfg, instances_to_delete, delete_report) 222 def CleanUpRemoteHost(cfg, remote_host, host_user, argument 237 credentials = auth.CreateCredentials(cfg) 239 acloud_config=cfg, 245 host_ssh_private_key_path or cfg.ssh_private_key_path)) 260 def DeleteInstanceByNames(cfg, instances): argument [all …]
|
/tools/acloud/powerwash/ |
D | powerwash.py | 35 def PowerwashFromInstance(cfg, instance, instance_id): argument 48 ssh_private_key_path=cfg.ssh_private_key_path, 49 extra_args_ssh_tunnel=cfg.extra_args_ssh_tunnel) 83 cfg = config.GetAcloudConfig(args) 86 cfg, [args.instance_name]) 87 return PowerwashFromInstance(cfg, instance[0], args.instance_id) 88 return PowerwashFromInstance(cfg, 89 list_instances.ChooseOneRemoteInstance(cfg),
|
/tools/acloud/create/ |
D | cheeps_remote_image_remote_instance.py | 50 avd_spec.cfg.project, avd_spec.remote_image[constants.BUILD_ID]) 52 device_factory = CheepsDeviceFactory(avd_spec.cfg, avd_spec) 56 cfg=avd_spec.cfg, 81 def __init__(self, cfg, avd_spec=None): argument 88 self.credentials = auth.CreateCredentials(cfg) 91 cfg, self.credentials) 94 self._cfg = cfg
|
/tools/acloud/reconnect/ |
D | reconnect.py | 122 def AddPublicSshRsaToInstance(cfg, user, instance_name): argument 132 credentials = auth.CreateCredentials(cfg) 134 cfg, credentials) 137 cfg.ssh_public_key_path, 243 cfg = config.GetAcloudConfig(args) 248 cfg, args.instance_names) 250 instances_to_reconnect = list_instance.ChooseInstances(cfg, args.all) 261 AddPublicSshRsaToInstance(cfg, constants.GCE_USER, instance.name) 262 ReconnectInstance(cfg.ssh_private_key_path, 265 cfg.extra_args_ssh_tunnel,
|
/tools/acloud/pull/ |
D | pull_test.py | 38 cfg = mock.MagicMock() 39 cfg.ssh_private_key_path = "fake_ssh_path" 40 cfg.extra_args_ssh_tunnel = "" 49 pull.PullFileFromInstance(cfg, instance) 55 pull.PullFileFromInstance(cfg, instance) 145 cfg = mock.MagicMock() 152 self.Patch(config, "GetAcloudConfig", return_value=cfg) 157 mock.call(cfg, instance_obj, args.file_name, args.no_prompt)]) 166 mock.call(cfg, selected_instance, args.file_name, args.no_prompt)])
|
D | pull.py | 43 def PullFileFromInstance(cfg, instance, file_name=None, no_prompts=False): argument 61 ssh_private_key_path=cfg.ssh_private_key_path, 62 extra_args_ssh_tunnel=cfg.extra_args_ssh_tunnel) 215 cfg = config.GetAcloudConfig(args) 218 cfg, [args.instance_name]) 219 return PullFileFromInstance(cfg, instance[0], args.file_name, args.no_prompt) 220 return PullFileFromInstance(cfg, 221 list_instances.ChooseOneRemoteInstance(cfg),
|
/tools/treble/hacksaw/client/ |
D | client.go | 48 cfg := config.GetConfig() 49 if err := cfg.ReadConfigFromFile(cfgPath); err != nil { 53 savedCfg := cfg.Copy() 58 if reflect.DeepEqual(savedCfg, cfg) { 61 return cfg.WriteConfigToFile(cfgPath)
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/ |
D | twilio_client.py | 56 cfg = yaml.load(cfg_file) 57 self.__account_sid = cfg[ACCOUNT_SID_KEY] 58 self.__auth_token = cfg[AUTH_TOKEN_KEY] 59 self.__phone_number = cfg[PHONE_NUMBER_KEY] 60 self.urls = cfg[URLS_KEY]
|
/tools/acloud/setup/ |
D | gcp_setup_runner.py | 256 cfg = config_mgr.Load() 258 self.project = cfg.project 259 self.zone = cfg.zone 260 self.ssh_private_key_path = cfg.ssh_private_key_path 261 self.ssh_public_key_path = cfg.ssh_public_key_path 262 self.stable_host_image_name = cfg.stable_host_image_name 263 self.client_id = cfg.client_id 264 self.client_secret = cfg.client_secret 265 self.service_account_name = cfg.service_account_name 266 self.service_account_private_key_path = cfg.service_account_private_key_path [all …]
|
/tools/acloud/restart/ |
D | restart_test.py | 31 cfg = mock.MagicMock() 38 self.Patch(config, "GetAcloudConfig", return_value=cfg) 43 mock.call(cfg, instance_obj, args.instance_id, args.powerwash)]) 52 mock.call(cfg, selected_instance, args.instance_id, args.powerwash)])
|