move robotframeworkonap to subdirectory 00/85700/4
authorDR695H <dr695h@att.com>
Thu, 18 Apr 2019 14:56:38 +0000 (10:56 -0400)
committerGary Wu <gary.i.wu@huawei.com>
Tue, 23 Apr 2019 17:34:04 +0000 (10:34 -0700)
i also moved the build to maven based, although that isnt needed
to work right now.

Change-Id: Ib18d70e3ea4858cc4b9d51fdc2046b59202640ab
Issue-ID: TEST-141
Signed-off-by: DR695H <dr695h@att.com>
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
32 files changed:
README.TXT
pom.xml
robotframework-onap/.gitignore [new file with mode: 0644]
robotframework-onap/README.TXT [new file with mode: 0644]
robotframework-onap/eteutils/DNSUtils.py [moved from eteutils/DNSUtils.py with 100% similarity]
robotframework-onap/eteutils/EteGatherDataListener.py [moved from eteutils/EteGatherDataListener.py with 100% similarity]
robotframework-onap/eteutils/HEATUtils.py [moved from eteutils/HEATUtils.py with 100% similarity]
robotframework-onap/eteutils/HTTPUtils.py [moved from eteutils/HTTPUtils.py with 100% similarity]
robotframework-onap/eteutils/JSONUtils.py [moved from eteutils/JSONUtils.py with 100% similarity]
robotframework-onap/eteutils/OSUtils.py [moved from eteutils/OSUtils.py with 100% similarity]
robotframework-onap/eteutils/OpenstackLibrary.py [moved from eteutils/OpenstackLibrary.py with 100% similarity]
robotframework-onap/eteutils/RequestsClientCert.py [moved from eteutils/RequestsClientCert.py with 100% similarity]
robotframework-onap/eteutils/StringTemplater.py [moved from eteutils/StringTemplater.py with 100% similarity]
robotframework-onap/eteutils/TemplatingEngine.py [moved from eteutils/TemplatingEngine.py with 100% similarity]
robotframework-onap/eteutils/UUID.py [moved from eteutils/UUID.py with 100% similarity]
robotframework-onap/eteutils/__init__.py [moved from loadtest/__init__.py with 100% similarity]
robotframework-onap/eteutils/csvLibrary.py [moved from eteutils/csvLibrary.py with 100% similarity]
robotframework-onap/loadtest/RunEte.py [moved from loadtest/RunEte.py with 100% similarity]
robotframework-onap/loadtest/TestConfig.py [moved from loadtest/TestConfig.py with 100% similarity]
robotframework-onap/loadtest/TestController.py [moved from loadtest/TestController.py with 100% similarity]
robotframework-onap/loadtest/TestMain.py [moved from loadtest/TestMain.py with 100% similarity]
robotframework-onap/loadtest/__init__.py [new file with mode: 0644]
robotframework-onap/pom.xml [new file with mode: 0644]
robotframework-onap/setup-template.py [new file with mode: 0644]
robotframework-onap/setup.cfg [moved from setup.cfg with 100% similarity]
robotframework-onap/setup.py [moved from setup.py with 92% similarity]
robotframework-onap/tox.ini [moved from tox.ini with 100% similarity]
robotframework-onap/vcpeutils/SoUtils.py [moved from vcpeutils/SoUtils.py with 100% similarity]
robotframework-onap/vcpeutils/__init__.py [new file with mode: 0644]
robotframework-onap/vcpeutils/csar_parser.py [moved from vcpeutils/csar_parser.py with 100% similarity]
robotframework-onap/vcpeutils/preload.py [moved from vcpeutils/preload.py with 100% similarity]
robotframework-onap/vcpeutils/vcpecommon.py [moved from vcpeutils/vcpecommon.py with 100% similarity]

index e25739f..41a87ab 100644 (file)
@@ -1,8 +1,6 @@
-OpenECOMP ETE Utils
+Python Testing Utils
 =======================
 
-
-
 Scripts written to be used during ete testing
 
-to install locally, checkout this repo and then run 'pip install -e .' in the root
\ No newline at end of file
+to install locally, checkout this repo and then run 'pip install -e .' in the subdirectory of the project you want to install
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index b196873..ecb6d7f 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -5,78 +5,10 @@
        <groupId>org.onap.testsuite</groupId>
        <artifactId>python-testing-utils</artifactId>
        <name>testsuite-python-testing-utils</name>
-       <version>0.3.0-SNAPSHOT</version>
-       <description>Scripts written to be used during robot framework testing</description>
-       <parent>
-               <groupId>org.onap.oparent</groupId>
-               <artifactId>oparent-python</artifactId>
-               <version>1.2.3</version>
-       </parent>
-       <properties>
-               <wheel.name>${project.artifactId}-${python_version}-py2-none-any.whl</wheel.name>
-               <python.sourceDirectory>${project.basedir}</python.sourceDirectory>
-        <python.pypi.repository>https://nexus3.onap.org/repository/PyPi.snapshot/</python.pypi.repository>
-       </properties>
-       <build>
-               <plugins>
-                       <plugin>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>build-helper-maven-plugin</artifactId>
-                               <executions>
-                                       <execution>
-                                               <id>attach-artifacts</id>
-                                               <configuration>
-                                                       <artifacts>
-                                                               <artifact>
-                                                                       <file>${project.build.directory}/maven-python/dist/${wheel.name}</file>
-                                                                       <type>whl</type>
-                                                               </artifact>
-                                                       </artifacts>
-                                                       <skipAttach>false</skipAttach>
-                                               </configuration>
-                                       </execution>
-                               </executions>
-                       </plugin>
-                       <plugin>
-                               <groupId>com.github.UltimateDogg</groupId>
-                               <artifactId>maven-python-distribute-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>package</id>
-                        <goals>
-                            <goal>package</goal>
-                        </goals>
-                    </execution>
-                    <execution>
-                        <id>process</id>
-                        <goals>
-                            <goal>process-sources</goal>
-                        </goals>
-                    </execution>
-                    <execution>
-                        <id>deploy</id>
-                        <goals>
-                            <goal>deploy</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                               <configuration>
-                    <repository>${python.pypi.repository}</repository>
-                                       <sourceDirectory>${python.sourceDirectory}</sourceDirectory>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <artifactId>exec-maven-plugin</artifactId>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <executions>
-                                       <execution>
-                                               <id>tox-test</id>
-                                               <configuration>
-                                                       <workingDirectory>${project.build.directory}/maven-python/eteutils</workingDirectory>
-                                               </configuration>
-                                       </execution>
-                               </executions>
-                       </plugin>
-               </plugins>
-       </build>
+       <version>0.4.0-SNAPSHOT</version>
+       <description>parent project for scripts written to be used during robot framework testing</description>
+
+       <modules>
+               <module>robotframework-onap</module>
+       </modules>
 </project>
\ No newline at end of file
diff --git a/robotframework-onap/.gitignore b/robotframework-onap/.gitignore
new file mode 100644 (file)
index 0000000..70a57dd
--- /dev/null
@@ -0,0 +1,262 @@
+.tox/*
+python_openecomp_eteutils.egg-info/*
+
+# Created by https://www.gitignore.io/api/node,sonar,maven,eclipse,sonarqube,intellij+all
+
+### Eclipse ###
+
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.settings/
+.loadpath
+.recommenders
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# PyDev specific (Python IDE for Eclipse)
+*.pydevproject
+
+# CDT-specific (C/C++ Development Tooling)
+.cproject
+
+# CDT- autotools
+.autotools
+
+# Java annotation processor (APT)
+.factorypath
+
+# PDT-specific (PHP Development Tools)
+.buildpath
+
+# sbteclipse plugin
+.target
+
+# Tern plugin
+.tern-project
+
+# TeXlipse plugin
+.texlipse
+
+# STS (Spring Tool Suite)
+.springBeans
+
+# Code Recommenders
+.recommenders/
+
+# Annotation Processing
+.apt_generated/
+
+# Scala IDE specific (Scala & Java development for Eclipse)
+.cache-main
+.scala_dependencies
+.worksheet
+
+### Eclipse Patch ###
+# Eclipse Core
+.project
+
+# JDT-specific (Eclipse Java Development Tools)
+.classpath
+
+# Annotation Processing
+.apt_generated
+
+.sts4-cache/
+
+### Intellij+all ###
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
+
+# User-specific stuff
+.idea/**/workspace.xml
+.idea/**/tasks.xml
+.idea/**/usage.statistics.xml
+.idea/**/dictionaries
+.idea/**/shelf
+
+# Generated files
+.idea/**/contentModel.xml
+
+# Sensitive or high-churn files
+.idea/**/dataSources/
+.idea/**/dataSources.ids
+.idea/**/dataSources.local.xml
+.idea/**/sqlDataSources.xml
+.idea/**/dynamic.xml
+.idea/**/uiDesigner.xml
+.idea/**/dbnavigator.xml
+
+# Gradle
+.idea/**/gradle.xml
+.idea/**/libraries
+
+# Gradle and Maven with auto-import
+# When using Gradle or Maven with auto-import, you should exclude module files,
+# since they will be recreated, and may cause churn.  Uncomment if using
+# auto-import.
+# .idea/modules.xml
+# .idea/*.iml
+# .idea/modules
+
+# CMake
+cmake-build-*/
+
+# Mongo Explorer plugin
+.idea/**/mongoSettings.xml
+
+# File-based project format
+*.iws
+
+# IntelliJ
+out/
+
+# mpeltonen/sbt-idea plugin
+.idea_modules/
+
+# JIRA plugin
+atlassian-ide-plugin.xml
+
+# Cursive Clojure plugin
+.idea/replstate.xml
+
+# Crashlytics plugin (for Android Studio and IntelliJ)
+com_crashlytics_export_strings.xml
+crashlytics.properties
+crashlytics-build.properties
+fabric.properties
+
+# Editor-based Rest Client
+.idea/httpRequests
+
+# Android studio 3.1+ serialized cache file
+.idea/caches/build_file_checksums.ser
+
+### Intellij+all Patch ###
+# Ignores the whole .idea folder and all .iml files
+# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
+
+.idea/
+
+# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
+
+*.iml
+modules.xml
+.idea/misc.xml
+*.ipr
+
+### Maven ###
+target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+.mvn/timing.properties
+.mvn/wrapper/maven-wrapper.jar
+
+### Node ###
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+
+# nyc test coverage
+.nyc_output
+
+# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# Bower dependency directory (https://bower.io/)
+bower_components
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (https://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules/
+jspm_packages/
+
+# TypeScript v1 declaration files
+typings/
+
+# Optional npm cache directory
+.npm
+
+# Optional eslint cache
+.eslintcache
+
+# Optional REPL history
+.node_repl_history
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
+
+# parcel-bundler cache (https://parceljs.org/)
+.cache
+
+# next.js build output
+.next
+
+# nuxt.js build output
+.nuxt
+
+# vuepress build output
+.vuepress/dist
+
+# Serverless directories
+.serverless
+
+### Sonar ###
+#Sonar generated dir
+/.sonar/
+
+### SonarQube ###
+# SonarQube ignore files.
+#
+# https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
+# Sonar Scanner working directories
+.sonar/
+.scannerwork/
+
+# http://www.sonarlint.org/commandline/
+# SonarLint working directories, configuration files (including credentials)
+.sonarlint/
+
+
+# End of https://www.gitignore.io/api/node,sonar,maven,eclipse,sonarqube,intellij+all
+.flattened-pom.xml
\ No newline at end of file
diff --git a/robotframework-onap/README.TXT b/robotframework-onap/README.TXT
new file mode 100644 (file)
index 0000000..9989546
--- /dev/null
@@ -0,0 +1,6 @@
+Robotframework-ONAP
+=======================
+
+Robot framework plugin to work with onap
+
+to install locally, checkout this repo and then run 'pip install -e .' in the root
\ No newline at end of file
diff --git a/robotframework-onap/loadtest/__init__.py b/robotframework-onap/loadtest/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/robotframework-onap/pom.xml b/robotframework-onap/pom.xml
new file mode 100644 (file)
index 0000000..8c6c05b
--- /dev/null
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+       <packaging>pom</packaging>
+       <groupId>org.onap.testsuite.python-testing-utils</groupId>
+       <artifactId>robotframework-onap</artifactId>
+       <name>robotframework-onap</name>
+       <version>0.4.0-SNAPSHOT</version>
+       <description>Scripts written to be used during robot framework testing</description>
+       <parent>
+               <groupId>org.onap.oparent</groupId>
+               <artifactId>oparent-python</artifactId>
+               <version>1.2.3</version>
+                <relativePath/>
+       </parent>
+       <properties>
+               <!-- this wont work because pip applies a regex to names while this doesnt https://www.python.org/dev/peps/pep-0427/#id12
+               <wheel.name>${project.artifactId}-${python_version}-py2-none-any.whl</wheel.name>-->
+               <wheel.name>robotframework_onap-${python_version}-py2-none-any.whl</wheel.name>
+               <python.sourceDirectory>${project.basedir}</python.sourceDirectory>
+        <python.pypi.repository>https://nexus3.onap.org/repository/PyPi.snapshot/</python.pypi.repository>
+       </properties>
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>build-helper-maven-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>attach-artifacts</id>
+                                               <configuration>
+                                                       <artifacts>
+                                                               <artifact>
+                                                                       <file>${project.build.directory}/maven-python/dist/${wheel.name}</file>
+                                                                       <type>whl</type>
+                                                               </artifact>
+                                                       </artifacts>
+                                                       <skipAttach>false</skipAttach>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>com.github.UltimateDogg</groupId>
+                               <artifactId>maven-python-distribute-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>package</id>
+                        <goals>
+                            <goal>package</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>process</id>
+                        <goals>
+                            <goal>process-sources</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>deploy</id>
+                        <goals>
+                            <goal>deploy</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                               <configuration>
+                    <repository>${python.pypi.repository}</repository>
+                                       <sourceDirectory>${python.sourceDirectory}</sourceDirectory>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <artifactId>exec-maven-plugin</artifactId>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <executions>
+                                       <execution>
+                                               <id>tox-test</id>
+                                               <configuration>
+                                                       <workingDirectory>${project.build.directory}</workingDirectory>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+               </plugins>
+       </build>
+</project>
diff --git a/robotframework-onap/setup-template.py b/robotframework-onap/setup-template.py
new file mode 100644 (file)
index 0000000..e8d3dcf
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 2019 AT&T Intellectual Property. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+from setuptools import setup
+
+setup(
+    name='${PROJECT_NAME}',            # This is the name of your PyPI-package.
+    keywords=("utils", "robotframework", "testing", "onap"),
+    version='${VERSION}',                        # Update the version number for new releases
+    license="Apache 2.0",
+    description='Scripts written to be used during robot framework testing',    # Info about script
+    long_description="python-package that provides convenience methods to make certain tasks in robot framework easier."
+                     "since this uses robot framework internal libraries or may in the future, it is not meant as a"
+                     "general purpose library",
+    url="https://github.com/onap/testsuite-python-testing-utils",
+    platforms=['all'],
+    install_requires=[
+        'dnspython',
+        'paramiko',
+        'pyyaml',
+        'robotframework',
+        'deepdiff>=2.5,<3.3',
+        'Jinja2'
+    ],  # what we need
+    packages=['eteutils', 'loadtest', 'vcpeutils'],       # The name of your scripts package
+    package_dir={'eteutils': 'eteutils', 'loadtest': 'loadtest', 'vcpeutils':'vcpeutils'}, # The location of your scipts package
+    classifiers=[
+        'Development Status :: 4 - Beta',
+        'Intended Audience :: Developers',
+        'Programming Language :: Python :: 2.7',
+        'Environment :: Plugins',
+        'Framework :: Robot Framework',
+        'Framework :: Robot Framework :: Library',
+        'License :: OSI Approved :: Apache Software License'
+    ]
+)
similarity index 100%
rename from setup.cfg
rename to robotframework-onap/setup.cfg
similarity index 92%
rename from setup.py
rename to robotframework-onap/setup.py
index 20aec53..c5460de 100644 (file)
--- a/setup.py
@@ -16,9 +16,9 @@
 from setuptools import setup
 
 setup(
-    name='python-openecomp-eteutils',            # This is the name of your PyPI-package.
+    name='robotframework-onap',            # This is the name of your PyPI-package.
     keywords=("utils", "robotframework", "testing", "onap"),
-    version='0.3',                          # Update the version number for new releases
+    version='0.4',                          # Update the version number for new releases
     license="Apache 2.0",
     description='Scripts written to be used during robot framework testing',    # Info about script
     long_description="python-package that provides convenience methods to make certain tasks in robot framework easier."
similarity index 100%
rename from tox.ini
rename to robotframework-onap/tox.ini
diff --git a/robotframework-onap/vcpeutils/__init__.py b/robotframework-onap/vcpeutils/__init__.py
new file mode 100644 (file)
index 0000000..e69de29