How to use _info method in localstack

Best Python code snippet using localstack_python

reserved_infos.py

Source:reserved_infos.py Github

copy

Full Screen

1# Copyright 2017 The Chromium Authors. All rights reserved.2# Use of this source code is governed by a BSD-style license that can be3# found in the LICENSE file.4class _Info(object):5 def __init__(self, name, _type=None, entry_type=None):6 self._name = name7 self._type = _type8 if entry_type is not None and self._type != 'GenericSet':9 raise ValueError(10 'entry_type should only be specified if _type is GenericSet')11 self._entry_type = entry_type12 @property13 def name(self):14 return self._name15 @property16 def type(self):17 return self._type18 @property19 def entry_type(self):20 return self._entry_type21ANGLE_REVISIONS = _Info('angleRevisions', 'GenericSet', str)22ARCHITECTURES = _Info('architectures', 'GenericSet', str)23BENCHMARKS = _Info('benchmarks', 'GenericSet', str)24BENCHMARK_START = _Info('benchmarkStart', 'DateRange')25BENCHMARK_DESCRIPTIONS = _Info('benchmarkDescriptions', 'GenericSet', str)26BOTS = _Info('bots', 'GenericSet', str)27BUG_COMPONENTS = _Info('bugComponents', 'GenericSet', str)28BUILD_URLS = _Info('buildUrls', 'GenericSet', str)29BUILDS = _Info('builds', 'GenericSet', int)30CATAPULT_REVISIONS = _Info('catapultRevisions', 'GenericSet', str)31CHROMIUM_COMMIT_POSITIONS = _Info('chromiumCommitPositions', 'GenericSet', int)32CHROMIUM_REVISIONS = _Info('chromiumRevisions', 'GenericSet', str)33DESCRIPTION = _Info('description', 'GenericSet', str)34DEVICE_IDS = _Info('deviceIds', 'GenericSet', str)35DOCUMENTATION_URLS = _Info('documentationLinks', 'GenericSet', str)36FUCHSIA_GARNET_REVISIONS = _Info('fuchsiaGarnetRevisions', 'GenericSet', str)37FUCHSIA_PERIDOT_REVISIONS = _Info('fuchsiaPeridotRevisions', 'GenericSet', str)38FUCHSIA_TOPAZ_REVISIONS = _Info('fuchsiaTopazRevisions', 'GenericSet', str)39FUCHSIA_ZIRCON_REVISIONS = _Info('fuchsiaZirconRevisions', 'GenericSet', str)40GPUS = _Info('gpus', 'GenericSet', str)41HAD_FAILURES = _Info('hadFailures', 'GenericSet', bool)42IS_REFERENCE_BUILD = _Info('isReferenceBuild', 'GenericSet', bool)43LABELS = _Info('labels', 'GenericSet', str)44LOG_URLS = _Info('logUrls', 'GenericSet', str)45MASTERS = _Info('masters', 'GenericSet', str)46MEMORY_AMOUNTS = _Info('memoryAmounts', 'GenericSet', int)47OS_NAMES = _Info('osNames', 'GenericSet', str)48OS_VERSIONS = _Info('osVersions', 'GenericSet', str)49OWNERS = _Info('owners', 'GenericSet', str)50POINT_ID = _Info('pointId', 'GenericSet', int)51PRODUCT_VERSIONS = _Info('productVersions', 'GenericSet', str)52REVISION_TIMESTAMPS = _Info('revisionTimestamps', 'DateRange')53SKIA_REVISIONS = _Info('skiaRevisions', 'GenericSet', str)54STATISTICS_NAMES = _Info('statisticsNames', 'GenericSet', str)55STORIES = _Info('stories', 'GenericSet', str)56STORYSET_REPEATS = _Info('storysetRepeats', 'GenericSet', int)57STORY_TAGS = _Info('storyTags', 'GenericSet', str)58SUMMARY_KEYS = _Info('summaryKeys', 'GenericSet', str)59TEST_PATH = _Info('testPath', 'GenericSet', str)60TRACE_START = _Info('traceStart', 'DateRange')61TRACE_URLS = _Info('traceUrls', 'GenericSet', str)62V8_COMMIT_POSITIONS = _Info('v8CommitPositions', 'DateRange')63V8_REVISIONS = _Info('v8Revisions', 'GenericSet', str)64WEBRTC_REVISIONS = _Info('webrtcRevisions', 'GenericSet', str)65WEBRTC_INTERNAL_REVISIONS = _Info('webrtcInternalRevisions', 'GenericSet', str)66def _CreateCachedInfoTypes():67 info_types = {}68 for info in globals().values():69 if isinstance(info, _Info):70 info_types[info.name] = info71 return info_types72_CACHED_INFO_TYPES = _CreateCachedInfoTypes()73def GetTypeForName(name):74 info = _CACHED_INFO_TYPES.get(name)75 if info:76 return info.type77def AllInfos():78 for info in _CACHED_INFO_TYPES.values():79 yield info80def AllNames():81 for info in AllInfos():...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful