Searched refs:api (Results 1 - 19 of 19) sorted by relevance

/pkg/src/tests/api/
H A Dt_api_info.py38 import pkg.client.api as api namespace
54 api_obj.info, [], True, api.PackageInfo.ALL_OPTIONS -
55 (frozenset([api.PackageInfo.LICENSES]) |
56 api.PackageInfo.ACTION_OPTIONS))
125 info_needed = api.PackageInfo.ALL_OPTIONS - \
126 (api.PackageInfo.ACTION_OPTIONS |
127 frozenset([api.PackageInfo.LICENSES]))
130 self.assertTrue(not ret[api.ImageInterface.INFO_FOUND])
131 self.assertTrue(len(ret[api
[all...]
H A Dt_api_list.py40 import pkg.client.api as api namespace
123 states = [api.PackageInfo.KNOWN]
125 states.append(api.PackageInfo.INSTALLED)
129 states.append(api.PackageInfo.UPGRADABLE)
133 states.append(api.PackageInfo.UPGRADABLE)
138 states.append(api.PackageInfo.UPGRADABLE)
140 states.append(api.PackageInfo.RENAMED)
142 states.append(api.PackageInfo.OBSOLETE)
147 states.append(api
[all...]
H A Dt_api_refresh.py38 import pkg.client.api as api namespace
41 LIST_ALL = api.ImageInterface.LIST_ALL
H A Dt_api.py34 import pkg.client.api as api namespace
325 """Verify that properties of the ImageInterface api object are
352 """Verify that the publisher api methods work as expected.
452 "bobcat": (api.PackageInfo(ffoo),),
551 # that api functions still work as expected.
607 """Test deprecated api interfaces."""
722 self.assertEqual(type(dest), api.LicenseInfo)
771 self.assertEqual(type(src), api.LicenseInfo)
778 self.assertEqual(type(dest), api
[all...]
H A Dt_linked_image.py40 import pkg.client.api as api namespace
376 pkg_list = apio.get_pkg_list(api.ImageInterface.LIST_INSTALLED)
383 pkg_list = apio.get_pkg_list(api.ImageInterface.LIST_ALL)
H A Dt_api_search.py39 import pkg.client.api as api namespace
648 query = [api.Query(token, case_sensitive, return_actions,
656 query = [api.Query(token, case_sensitive, return_actions,
690 query = [api.Query(token, case_sensitive, return_actions,
698 query = [api.Query(token, case_sensitive, return_actions,
1662 Also tests whether multiple queries submitted via the api work.
2710 query = api.Query(token, case_sensitive, return_actions,
/pkg/src/tests/cli/
H A Dt_pkg_intent.py36 import pkg.client.api as api namespace
157 api_obj.info(plist, False, frozenset([api.PackageInfo.IDENTITY,
158 api.PackageInfo.STATE]))
164 frozenset([api.PackageInfo.DEPENDENCIES]))
H A Dt_pkgdep_resolve.py35 import pkg.client.api as api namespace
/pkg/src/modules/server/
H A Dface.py39 import pkg.server.api as api namespace
71 base = api.BaseInterface(request, depot, pub)
138 "server api: {error}".format(path=path,
/pkg/src/modules/client/
H A Dclient_api.py50 import pkg.client.api as api namespace
64 from pkg.client.api import (IMG_TYPE_ENTIRE, IMG_TYPE_PARTIAL,
621 pkg_list = api.ImageInterface.LIST_INSTALLED
624 pkg_list = api.ImageInterface.LIST_ALL
626 pkg_list = api.ImageInterface.LIST_INSTALLED_NEWEST
628 pkg_list = api.ImageInterface.LIST_NEWEST
630 pkg_list = api.ImageInterface.LIST_UPGRADABLE
673 [(api.PackageInfo.INSTALLED, "installed")],
674 [(api
[all...]
/pkg/src/
H A Dpkgdep.py39 import pkg.client.api as api namespace
269 img_dir, provided_image_dir = api.get_default_image_root(
311 api_inst = api.ImageInterface(img_dir, CLIENT_API_VERSION,
606 "is {client} while the library\nAPI version is {api}").format(
609 api=__e.expected_version variable
H A Dsysrepo.py53 import pkg.client.api namespace
172 """Return a pkg.client.api.ImageInterface for the provided
181 api_inst = pkg.client.api.ImageInterface(
951 "{api}.").format(client=__e.received_version,
952 api=__e.expected_version))
H A Dclient.py69 import pkg.client.api as api namespace
88 from pkg.client.api import (IMG_TYPE_ENTIRE, IMG_TYPE_PARTIAL,
1531 return api.ImageInterface(imgdir, CLIENT_API_VERSION,
1655 # All the api interface functions that we invoke have some
1796 plan = api.PlanDescription()
1837 """Do something that involves the api.
1841 assignment and will be passed directly on to the api
1860 # normal api behavior which doesn't prevent an api
5735 api=__e.expected_version variable
[all...]
H A Dpkgrepo.py2343 "{api}.").format(client=__e.received_version,
2344 api=__e.expected_version))
/pkg/src/modules/lint/
H A Dengine.py27 import pkg.client.api namespace
93 search_type = pkg.client.api.ImageInterface.LIST_NEWEST
121 search_type = pkg.client.api.ImageInterface.LIST_ALL
345 # a reference to the pkg.client.api for our reference and lint
736 pkg.client.api.ImageInterface.LIST_ALL,
824 # fallback to our reference api, returning None if that's
829 """Return a pkg.client.api.ImageInterface for the provided
836 api_inst = pkg.client.api.ImageInterface(
872 # repositories will be caught by pkg.client.api.image_create.
879 api_inst = pkg.client.api
[all...]
/pkg/src/tests/
H A Drun.py198 import pkg.client.api as api namespace
202 if pkg5unittest.CLIENT_API_VERSION not in api.COMPATIBLE_API_VERSIONS:
254 # "testdir" will be "api", "cli", etc., so find all the files in that
268 # "api.t_filter" -> ["api", "t_filter"]
441 api_suite = find_tests("api", onlyval, startattest, output,
H A Dpkg5unittest.py138 import pkg.client.api namespace
2419 res = pkg.client.api.ImageInterface(img_path,
2438 to user) image using the pkg.client.api and returns the related
2464 api_inst = pkg.client.api.image_create(PKG_CLIENT_NAME,
2466 pkg.client.api.IMG_TYPE_ENTIRE, False, repo_uri=repourl,
3734 # ssl_ca_file needs to be set there so the api object calls work
3743 # ssl_ca_file needs to be set there so the api object calls work
3752 # ssl_ca_file needs to be set there so the api object calls work
3761 # ssl_ca_file needs to be set there so the api object calls work
4394 api_inst = pkg.client.api
[all...]
/pkg/src/util/apache2/depot/
H A Ddepot_index.py44 import pkg.server.api namespace
377 # the pkg.server.api, which means passing a DepotBUI object,
387 base = pkg.server.api.BaseInterface(cherrypy.request, depot,
/pkg/src/modules/publish/
H A Ddependencies.py38 import pkg.client.api as api namespace
1698 api.ImageInterface.LIST_INSTALLED,

Completed in 89 milliseconds