Best Python code snippet using hypothesis
pkg_proto.py
Source:pkg_proto.py
1#!/usr/bin/env python2# -*- coding: utf-8 -*-3#4# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.5#6# Copyright (c) 2009-2012 Oracle and/or its affiliates. All rights reserved.7#8# The contents of this file are subject to the terms of either the GNU9# General Public License Version 2 only ("GPL") or the Common Development10# and Distribution License("CDDL") (collectively, the "License"). You11# may not use this file except in compliance with the License. You can12# obtain a copy of the License at13# https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html14# or packager/legal/LICENSE.txt. See the License for the specific15# language governing permissions and limitations under the License.16#17# When distributing the software, include this License Header Notice in each18# file and include the License file at packager/legal/LICENSE.txt.19#20# GPL Classpath Exception:21# Oracle designates this particular file as subject to the "Classpath"22# exception as provided by Oracle in the GPL Version 2 section of the License23# file that accompanied this code.24#25# Modifications:26# If applicable, add the following below the License Header, with the fields27# enclosed by brackets [] replaced by your own identifying information:28# "Portions Copyright [year] [name of copyright owner]"29#30# Contributor(s):31# If you wish your version of this file to be governed by only the CDDL or32# only the GPL Version 2, indicate your decision by adding "[Contributor]33# elects to include this software in this distribution under the [CDDL or GPL34# Version 2] license." If you don't indicate a single choice of license, a35# recipient has the option to distribute your version of this file under36# either the CDDL, the GPL Version 2 or to extend the choice of license to37# its licensees as provided above. However, if you add GPL Version 2 code38# and therefore, elected the GPL Version 2 license, then the option applies39# only if the new code is made subject to such option by the copyright40# holder.41#42import imp43conf = imp.load_source("pkg_conf", "../pkg_conf.py")44pkg = {45 "name" : "glassfish-web-incorporation",46 "version" : conf.glassfish_version,47 "attributes" : {48 "pkg.summary" : "GlassFish Web Profile Incorporation",49 "pkg.description" : "GlassFish Web Profile Incorporation Package. "+conf.glassfish_description_long,50 "info.classification" : conf.glassfish_info_classification,51 },52 "depends" : { 53 "pkg:/javadb-common@10" : {"type" : "incorporate" },54 "pkg:/javadb-core@10" : {"type" : "incorporate" },55 "pkg:/javadb-client@10" : {"type" : "incorporate" },56 "pkg:/pkg-java@1" : {"type" : "incorporate" },57 "pkg:/felix@" + conf.felix_version : {"type" : "incorporate" },58 "pkg:/glassfish-hk2@" + conf.glassfish_version : {"type" : "incorporate" },59 "pkg:/glassfish-grizzly@" + conf.grizzly_version : {"type" : "incorporate" },60 "pkg:/glassfish-nucleus@" +conf.glassfish_version : {"type" : "incorporate" },61 "pkg:/glassfish-grizzly-full@" + conf.grizzly_version : {"type" : "incorporate" },62 "pkg:/glassfish-common@" + conf.glassfish_version : {"type" : "incorporate" },63 "pkg:/shoal@" + conf.shoal_version : {"type" : "incorporate" },64 "pkg:/glassfish-cluster@" + conf.glassfish_version : {"type" : "incorporate" },65 "pkg:/glassfish-ha@" + conf.glassfish_version : {"type" : "incorporate" },66 "pkg:/glassfish-registration@" + conf.glassfish_version : {"type" : "incorporate" },67 "pkg:/jersey@2" : {"type" : "incorporate" },68 "pkg:/glassfish-management@" + conf.glassfish_version : {"type" : "incorporate" },69 "pkg:/glassfish-commons-web@" + conf.glassfish_version : {"type" : "incorporate" },70 "pkg:/glassfish-jca@" + conf.glassfish_version : {"type" : "incorporate" },71 "pkg:/glassfish-jpa@" + conf.glassfish_version : {"type" : "incorporate" },72 "pkg:/glassfish-jta@" + conf.glassfish_version : {"type" : "incorporate" },73 "pkg:/glassfish-corba-base@" + conf.corba_version : {"type" : "incorporate" },74 "pkg:/glassfish-jts@" + conf.glassfish_version : {"type" : "incorporate" },75 "pkg:/glassfish-ejb-lite@" + conf.glassfish_version : {"type" : "incorporate" },76 "pkg:/glassfish-jsf@" + conf.jsf_version : {"type" : "incorporate" },77 "pkg:/glassfish-web@" + conf.glassfish_version : {"type" : "incorporate" },78 "pkg:/glassfish-osgi-http@" + conf.glassfish_version : {"type" : "incorporate" },79 "pkg:/glassfish-jcdi@" + conf.glassfish_version : {"type" : "incorporate" },80 "pkg:/glassfish-jdbc@" + conf.glassfish_version : {"type" : "incorporate" },81 "pkg:/glassfish-gui@" + conf.glassfish_version : {"type" : "incorporate" }, 82 "pkg:/glassfish-scripting@3.1" : {"type" : "incorporate" }, 83 },84 "licenses" : {85 "../../../../CDDL+GPL.txt" : {"license" : "CDDL and GPL v2 with classpath exception"},86 },...
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!