def test_import_service(self): self.mock(gitiles_import, '_import_config_set', mock.Mock()) conf = admin.GlobalConfig( services_config_storage_type=admin.ServiceConfigStorageType. GITILES, services_config_location='https://localhost/config') gitiles_import.import_service('luci-config', conf) gitiles_import._import_config_set.assert_called_once_with( 'services/luci-config', 'https://localhost/config/+/HEAD/luci-config')
def test_import_service(self): self.mock(gitiles_import, '_import_config_set', mock.Mock()) conf = admin.GlobalConfig( services_config_storage_type=admin.ServiceConfigStorageType. GITILES, services_config_location='https://localhost/config') gitiles_import.import_service('luci-config', conf) gitiles_import._import_config_set.assert_called_once_with( 'services/luci-config', gitiles.Location( hostname='localhost', project='config', treeish='HEAD', path='/luci-config', ), )