Lines Matching refs:cfg

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")
148 self.assertEqual(cfg.storage_bucket_name, "fake_bucket")
149 self.assertEqual(cfg.orientation, "portrait")
150 self.assertEqual(cfg.resolution, "1200x1200x1200x1200")
151 self.assertEqual(cfg.client_id, "fake_client_id")
152 self.assertEqual(cfg.client_secret, "fake_client_secret")
153 self.assertEqual(cfg.extra_args_ssh_tunnel, "fake_extra_args_ssh_tunnel")
155 {key: val for key, val in six.iteritems(cfg.metadata_variable)},
157 self.assertEqual(cfg.hw_property,
160 self.assertEqual(cfg.extra_scopes, ["scope1", "scope2"])
161 self.assertEqual(cfg.betty_image, "fake_betty_image")
183 cfg = config_unspecify.Load()
186 self.assertEqual(cfg.project, "")
187 self.assertEqual(cfg.zone, "")
201 cfg = config_exist.Load()
202 self.assertEqual(cfg.project, "fake-project")
203 self.assertEqual(cfg.zone, "us-central1-f")
204 self.assertEqual(cfg.client_id, "fake_client_id")
205 self.assertEqual(cfg.client_secret, "fake_client_secret")
214 cfg = config.AcloudConfigManager.LoadConfigFromProtocolBuffer(
216 self.assertEqual(cfg.min_machine_size, "n1-standard-1")
217 self.assertEqual(cfg.disk_image_name, "avd-system.tar.gz")
218 self.assertEqual(cfg.disk_image_mime_type, "application/x-tar")
219 self.assertEqual(cfg.disk_image_extension, ".tar.gz")
220 self.assertEqual(cfg.disk_raw_image_name, "disk.raw")
221 self.assertEqual(cfg.disk_raw_image_extension, ".img")
222 self.assertEqual(cfg.creds_cache_file, ".fake_oauth2.dat")
223 self.assertEqual(cfg.user_agent, "fake_user_agent")
224 self.assertEqual(cfg.default_usr_cfg.machine_type, "n1-standard-1")
225 self.assertEqual(cfg.default_usr_cfg.network, "default")
228 for key, val in six.iteritems(cfg.default_usr_cfg.metadata_variable)
234 {key: val for key, val in six.iteritems(cfg.device_resolution_map)},
238 for key, val in six.iteritems(cfg.device_default_orientation_map)
243 for key, val in six.iteritems(cfg.valid_branch_and_min_build_id)
246 self.assertEqual(cfg.default_usr_cfg.stable_host_image_name,
248 self.assertEqual(cfg.default_usr_cfg.stable_host_image_project,
250 self.assertEqual(cfg.kernel_build_target, "kernel")
253 self.assertEqual(cfg.default_usr_cfg.stable_goldfish_host_image_name,
255 self.assertEqual(cfg.default_usr_cfg.stable_goldfish_host_image_project,
257 self.assertEqual(cfg.emulator_build_target, "sdk_tools_linux")
258 self.assertEqual(cfg.default_usr_cfg.instance_name_pattern,
262 self.assertEqual(cfg.default_usr_cfg.stable_cheeps_host_image_name,
264 self.assertEqual(cfg.default_usr_cfg.stable_cheeps_host_image_project,
269 {key: val for key, val in six.iteritems(cfg.common_hw_property_map)},
283 self.cfg.zone = "us-central1-f"
288 self.cfg.OverrideWithArgs(args)
289 self.assertEqual(self.cfg.zone, "us-central1-b")
295 self.assertEqual(expected, self.cfg.GetDefaultHwProperty("phone"))
299 self.assertEqual(expected, self.cfg.GetDefaultHwProperty("auto"))
304 self.cfg.hw_property = ""
306 self.assertEqual(expected, self.cfg.GetMissingFields(fields))