Addition of Tox.ini and License Headers 66/9966/1
authorashishj1729 <jain.ashish@samsung.com>
Tue, 6 Dec 2022 08:56:19 +0000 (14:26 +0530)
committerashishj1729 <jain.ashish@samsung.com>
Tue, 6 Dec 2022 08:57:17 +0000 (14:27 +0530)
Issue-Id: AIMLFW-5

Signed-off-by: ashishj1729 <jain.ashish@samsung.com>
Change-Id: I3b4b7637bca27c83f2c0a8bde67907b3f815af2b

test/SparkConfig.ini
test/requirements_tests.txt
test/sink/SinkClassConfig.ini
test/source/SourceClassConfig.ini
test/test_env.env
test/transform/TransformClassConfig.ini
tox.ini [new file with mode: 0644]

index 7ee005b..5aff802 100644 (file)
@@ -1,3 +1,21 @@
+# ==================================================================================
+#
+#       Copyright (c) 2022 Samsung Electronics Co., Ltd. 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.
+#
+# ==================================================================================
+
 [BaseConfig]
 DefaultAppName=Pipeline
 DefaultMaster=local[1]
index 867c022..eeb1712 100644 (file)
@@ -1,3 +1,21 @@
+# ==================================================================================
+#
+#       Copyright (c) 2022 Samsung Electronics Co., Ltd. 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.
+#
+# ==================================================================================
+
 pytest-cov
 python-dotenv
 pyspark
@@ -9,4 +27,5 @@ Flask-RESTful==0.3.9
 lru-dict==1.1.7
 influxdb_client
 mock
-pandas
\ No newline at end of file
+pandas
+PyYAML
\ No newline at end of file
index 7a12e9a..a00ee13 100644 (file)
@@ -1,3 +1,21 @@
+# ==================================================================================
+#
+#       Copyright (c) 2022 Samsung Electronics Co., Ltd. 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.
+#
+# ==================================================================================
+
 [ModuleDetails]
 ModuleName=sink
 BaseClassName=Sink
index 5e44f6a..15ff6b5 100644 (file)
@@ -1,3 +1,21 @@
+# ==================================================================================
+#
+#       Copyright (c) 2022 Samsung Electronics Co., Ltd. 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.
+#
+# ==================================================================================
+
 [InfluxSource]
 Name=Influxdb
 Description= Spark connector that Supports Reading from InfluxDB
index 9492f6f..bae3aaf 100644 (file)
@@ -1,3 +1,21 @@
+# ==================================================================================
+#
+#       Copyright (c) 2022 Samsung Electronics Co., Ltd. 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.
+#
+# ==================================================================================
+
 #change the values accordingly and all these env variables via 'source' command
 FS_API_HOST=''
 FS_API_PORT=1111
index 9f2f398..c63fa4b 100644 (file)
@@ -1,3 +1,21 @@
+# ==================================================================================
+#
+#       Copyright (c) 2022 Samsung Electronics Co., Ltd. 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.
+#
+# ==================================================================================
+
 [SQLTransform]
 Name=SQLTransformer
 Description= SQLTransformer Transforms your data using SQL statements
diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
index 0000000..5b751e5
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,46 @@
+# ==================================================================================\r
+#\r
+#       Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved.\r
+#\r
+#   Licensed under the Apache License, Version 2.0 (the "License");\r
+#   you may not use this file except in compliance with the License.\r
+#   You may obtain a copy of the License at\r
+#\r
+#          http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+#   Unless required by applicable law or agreed to in writing, software\r
+#   distributed under the License is distributed on an "AS IS" BASIS,\r
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+#   See the License for the specific language governing permissions and\r
+#   limitations under the License.\r
+#\r
+# ==================================================================================\r
+\r
+[tox]\r
+envlist = code\r
+skipsdist = true\r
+\r
+# basic test and coverage job\r
+[testenv:code]\r
+basepython = python3.8\r
+deps=\r
+  pytest\r
+  coverage\r
+  pytest-cov\r
+  mock\r
+  pandas\r
+  python-dotenv\r
+  pyspark\r
+  influxdb_client\r
+  cassandra-driver\r
+  jsonpickle\r
+  Flask\r
+  Flask-API\r
+  Flask-RESTful\r
+  lru-dict\r
+  PyYAML\r
+  \r
+\r
+commands =  \r
+  pytest --cov-report term-missing --cov-report xml --cov-report html --cov-fail-under=30 --junitxml=/tmp/tests.xml --cov={toxinidir}/dataextraction/\r
+  coverage xml -i\r