summaryrefslogtreecommitdiffstats
path: root/nfvparser/toscaparser/tests/artifacts
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2018-02-12 11:26:28 +0800
committershangxdy <shang.xiaodong@zte.com.cn>2018-02-12 11:29:16 +0800
commit331fe622c8b4612b0e1d57f46403ffabae46a12f (patch)
treefeb8277316dc183f7d17c27275518de9fab9a39e /nfvparser/toscaparser/tests/artifacts
parent1439e90a82088097c76ff6c01ac66ab8e27258fd (diff)
Add license info to all test files
Issue-ID: MODELING-62 Change-Id: I8f680489c9a0afe19a5ad36acf5d966e30fdf93e Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'nfvparser/toscaparser/tests/artifacts')
-rw-r--r--nfvparser/toscaparser/tests/artifacts/collectd/create.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/collectd/start.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/elasticsearch/create.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/elasticsearch/start.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/kibana/config.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/kibana/create.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/kibana/start.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/logstash/create.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/logstash/start.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/mongodb/config.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/mongodb/create.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/mongodb/create_database.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/mongodb/start.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_configure.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_install.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_start.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/nodejs/config.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/nodejs/create.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/nodejs/start.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/rsyslog/config.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/rsyslog/create.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/rsyslog/start.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/webserver/webserver_install.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/webserver/webserver_start.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_configure.sh12
-rw-r--r--nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_install.sh12
27 files changed, 324 insertions, 0 deletions
diff --git a/nfvparser/toscaparser/tests/artifacts/collectd/create.sh b/nfvparser/toscaparser/tests/artifacts/collectd/create.sh
index a483b88..d93774b 100644
--- a/nfvparser/toscaparser/tests/artifacts/collectd/create.sh
+++ b/nfvparser/toscaparser/tests/artifacts/collectd/create.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script install collectd for monitoring data
apt-get update
diff --git a/nfvparser/toscaparser/tests/artifacts/collectd/start.sh b/nfvparser/toscaparser/tests/artifacts/collectd/start.sh
index 7e8e033..89c1782 100644
--- a/nfvparser/toscaparser/tests/artifacts/collectd/start.sh
+++ b/nfvparser/toscaparser/tests/artifacts/collectd/start.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script starts collectd as a service in init.d
service collectd stop
service collectd start
diff --git a/nfvparser/toscaparser/tests/artifacts/elasticsearch/create.sh b/nfvparser/toscaparser/tests/artifacts/elasticsearch/create.sh
index c34126c..9bc7c3d 100644
--- a/nfvparser/toscaparser/tests/artifacts/elasticsearch/create.sh
+++ b/nfvparser/toscaparser/tests/artifacts/elasticsearch/create.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script installs java and elasticsearch
apt-get update
diff --git a/nfvparser/toscaparser/tests/artifacts/elasticsearch/start.sh b/nfvparser/toscaparser/tests/artifacts/elasticsearch/start.sh
index bbc0347..c9e4f47 100644
--- a/nfvparser/toscaparser/tests/artifacts/elasticsearch/start.sh
+++ b/nfvparser/toscaparser/tests/artifacts/elasticsearch/start.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script starts elasticsearch as a service in init.d
service elasticsearch stop
service elasticsearch start
diff --git a/nfvparser/toscaparser/tests/artifacts/kibana/config.sh b/nfvparser/toscaparser/tests/artifacts/kibana/config.sh
index f28215a..f2cb379 100644
--- a/nfvparser/toscaparser/tests/artifacts/kibana/config.sh
+++ b/nfvparser/toscaparser/tests/artifacts/kibana/config.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script configures kibana to connect to the elasticsearch server
# to access data and to export the app url on port 5601:
# The environment variable elasticsearch_ip and kibana_ip are expected
diff --git a/nfvparser/toscaparser/tests/artifacts/kibana/create.sh b/nfvparser/toscaparser/tests/artifacts/kibana/create.sh
index 41914b1..fe92a83 100644
--- a/nfvparser/toscaparser/tests/artifacts/kibana/create.sh
+++ b/nfvparser/toscaparser/tests/artifacts/kibana/create.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script installs kibana and sets it up to run as a service in init.d
cd /opt
wget https://download.elastic.co/kibana/kibana/kibana-4.1.0-linux-x64.tar.gz
diff --git a/nfvparser/toscaparser/tests/artifacts/kibana/start.sh b/nfvparser/toscaparser/tests/artifacts/kibana/start.sh
index 5149bb3..543886b 100644
--- a/nfvparser/toscaparser/tests/artifacts/kibana/start.sh
+++ b/nfvparser/toscaparser/tests/artifacts/kibana/start.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script starts kibana as a service in init.d
service kibana4 stop
service kibana4 start
diff --git a/nfvparser/toscaparser/tests/artifacts/logstash/create.sh b/nfvparser/toscaparser/tests/artifacts/logstash/create.sh
index 77cc8fd..e414879 100644
--- a/nfvparser/toscaparser/tests/artifacts/logstash/create.sh
+++ b/nfvparser/toscaparser/tests/artifacts/logstash/create.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script installs java, logstash and the contrib package for logstash
# install java as prereq
diff --git a/nfvparser/toscaparser/tests/artifacts/logstash/start.sh b/nfvparser/toscaparser/tests/artifacts/logstash/start.sh
index a73cf61..3851844 100644
--- a/nfvparser/toscaparser/tests/artifacts/logstash/start.sh
+++ b/nfvparser/toscaparser/tests/artifacts/logstash/start.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# Run logstash as service in init.d
service logstash stop
service logstash start
diff --git a/nfvparser/toscaparser/tests/artifacts/mongodb/config.sh b/nfvparser/toscaparser/tests/artifacts/mongodb/config.sh
index 78f484e..457c24c 100644
--- a/nfvparser/toscaparser/tests/artifacts/mongodb/config.sh
+++ b/nfvparser/toscaparser/tests/artifacts/mongodb/config.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# Edit the file /etc/mongod.conf, update with real IP of Mongo server
# This script configures the mongodb server to export its service on
# the server IP
diff --git a/nfvparser/toscaparser/tests/artifacts/mongodb/create.sh b/nfvparser/toscaparser/tests/artifacts/mongodb/create.sh
index d84c275..e4d51e9 100644
--- a/nfvparser/toscaparser/tests/artifacts/mongodb/create.sh
+++ b/nfvparser/toscaparser/tests/artifacts/mongodb/create.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script installs mongodb
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
diff --git a/nfvparser/toscaparser/tests/artifacts/mongodb/create_database.sh b/nfvparser/toscaparser/tests/artifacts/mongodb/create_database.sh
index 16f1358..07e5b16 100644
--- a/nfvparser/toscaparser/tests/artifacts/mongodb/create_database.sh
+++ b/nfvparser/toscaparser/tests/artifacts/mongodb/create_database.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
echo "conn = new Mongo();" > setup.js
echo "db = conn.getDB('paypal_pizza');" >> setup.js
echo "db.about.insert({'name': 'PayPal Pizza Store'});" >> setup.js
diff --git a/nfvparser/toscaparser/tests/artifacts/mongodb/start.sh b/nfvparser/toscaparser/tests/artifacts/mongodb/start.sh
index ac200a5..bca4c68 100644
--- a/nfvparser/toscaparser/tests/artifacts/mongodb/start.sh
+++ b/nfvparser/toscaparser/tests/artifacts/mongodb/start.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script starts mongodb
service mongod stop
rm /var/lib/mongodb/mongod.lock
diff --git a/nfvparser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh b/nfvparser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh
index 092136a..f2379da 100644
--- a/nfvparser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh
+++ b/nfvparser/toscaparser/tests/artifacts/mysql/mysql_database_configure.sh
@@ -1,4 +1,16 @@
#!/bin/sh
+# 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.
+
cat << EOF | mysql -u root --password=$db_root_password
CREATE DATABASE $db_name;
GRANT ALL PRIVILEGES ON $db_name.* TO "$db_user"@"localhost"
diff --git a/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_configure.sh b/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_configure.sh
index d4ef6b4..532267e 100644
--- a/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_configure.sh
+++ b/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_configure.sh
@@ -1,4 +1,16 @@
#!/bin/sh
+# 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.
+
sed --regexp-extended "s/(port\s*=\s*)[0-9]*/\1$db_port/g" </etc/mysql/my.cnf >/tmp/my.cnf
mv -f /tmp/my.cnf /etc/mysql/my.cnf
/etc/init.d/mysql stop
diff --git a/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_install.sh b/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_install.sh
index 38628b9..5eb0482 100644
--- a/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_install.sh
+++ b/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_install.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
#This script installs mysql server
apt-get update
diff --git a/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_start.sh b/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_start.sh
index 3378670..ec29188 100644
--- a/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_start.sh
+++ b/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_start.sh
@@ -1,2 +1,14 @@
#!/bin/sh
+# 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.
+
/etc/init.d/mysql start \ No newline at end of file
diff --git a/nfvparser/toscaparser/tests/artifacts/nodejs/config.sh b/nfvparser/toscaparser/tests/artifacts/nodejs/config.sh
index 1e149a2..f000a19 100644
--- a/nfvparser/toscaparser/tests/artifacts/nodejs/config.sh
+++ b/nfvparser/toscaparser/tests/artifacts/nodejs/config.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script installs an app for nodejs: the app intended is the paypal app
# and it is configured to connect to the mongodb server
# The environment variables github_url and mongodb_ip are expected to be set up
diff --git a/nfvparser/toscaparser/tests/artifacts/nodejs/create.sh b/nfvparser/toscaparser/tests/artifacts/nodejs/create.sh
index 04fd6c6..21e1669 100644
--- a/nfvparser/toscaparser/tests/artifacts/nodejs/create.sh
+++ b/nfvparser/toscaparser/tests/artifacts/nodejs/create.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script installs nodejs and the prereq
add-apt-repository ppa:chris-lea/node.js
diff --git a/nfvparser/toscaparser/tests/artifacts/nodejs/start.sh b/nfvparser/toscaparser/tests/artifacts/nodejs/start.sh
index 6939cb7..4b0b42f 100644
--- a/nfvparser/toscaparser/tests/artifacts/nodejs/start.sh
+++ b/nfvparser/toscaparser/tests/artifacts/nodejs/start.sh
@@ -1,3 +1,15 @@
#!/bin/bash
+# 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.
+
# This script starts the nodejs application
start nodeapp
diff --git a/nfvparser/toscaparser/tests/artifacts/rsyslog/config.sh b/nfvparser/toscaparser/tests/artifacts/rsyslog/config.sh
index 630767d..9543ce4 100644
--- a/nfvparser/toscaparser/tests/artifacts/rsyslog/config.sh
+++ b/nfvparser/toscaparser/tests/artifacts/rsyslog/config.sh
@@ -1,5 +1,17 @@
#!/bin/bash
+# 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.
+
# This script configures the output for rsyslogd to send logs to the
# logstash server port 2514 using the RELP protocol
# The environment variable logstash_ip is expected to be set up
diff --git a/nfvparser/toscaparser/tests/artifacts/rsyslog/create.sh b/nfvparser/toscaparser/tests/artifacts/rsyslog/create.sh
index affdd6e..c3538f8 100644
--- a/nfvparser/toscaparser/tests/artifacts/rsyslog/create.sh
+++ b/nfvparser/toscaparser/tests/artifacts/rsyslog/create.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script installs rsyslog and the library for RELP
apt-get update
diff --git a/nfvparser/toscaparser/tests/artifacts/rsyslog/start.sh b/nfvparser/toscaparser/tests/artifacts/rsyslog/start.sh
index 3de82d1..c389d1c 100644
--- a/nfvparser/toscaparser/tests/artifacts/rsyslog/start.sh
+++ b/nfvparser/toscaparser/tests/artifacts/rsyslog/start.sh
@@ -1,4 +1,16 @@
#!/bin/bash
+# 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.
+
# This script starts rsyslogd as a service in init.d
service rsyslog stop
service rsyslog start
diff --git a/nfvparser/toscaparser/tests/artifacts/webserver/webserver_install.sh b/nfvparser/toscaparser/tests/artifacts/webserver/webserver_install.sh
index 4ca9b4e..cf52d95 100644
--- a/nfvparser/toscaparser/tests/artifacts/webserver/webserver_install.sh
+++ b/nfvparser/toscaparser/tests/artifacts/webserver/webserver_install.sh
@@ -1,4 +1,16 @@
#!/bin/sh
+# 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.
+
#This script installs apache web server
apt-get update
diff --git a/nfvparser/toscaparser/tests/artifacts/webserver/webserver_start.sh b/nfvparser/toscaparser/tests/artifacts/webserver/webserver_start.sh
index e962ca5..6ab6480 100644
--- a/nfvparser/toscaparser/tests/artifacts/webserver/webserver_start.sh
+++ b/nfvparser/toscaparser/tests/artifacts/webserver/webserver_start.sh
@@ -1,2 +1,14 @@
#!/bin/sh
+# 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.
+
service apache2 start \ No newline at end of file
diff --git a/nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_configure.sh b/nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_configure.sh
index 5598b4f..59385df 100644
--- a/nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_configure.sh
+++ b/nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_configure.sh
@@ -1,4 +1,16 @@
#!/bin/sh
+# 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.
+
ln -s /usr/share/wordpress /var/www/html/wordpress
gzip -d /usr/share/doc/wordpress/examples/setup-mysql.gz
echo $wp_db_password | bash /usr/share/doc/wordpress/examples/setup-mysql -e $wp_db_name -u $wp_db_user localhost \ No newline at end of file
diff --git a/nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_install.sh b/nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_install.sh
index 1320443..9e81f87 100644
--- a/nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_install.sh
+++ b/nfvparser/toscaparser/tests/artifacts/wordpress/wordpress_install.sh
@@ -1,4 +1,16 @@
#!/bin/sh
+# 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.
+
#This script installs wordpress
apt-get update