From b5a9b8786b7bf7fd072ad25ec6080d7f00092e8e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 21 Jan 2020 12:20:29 +0530 Subject: [PATCH 01/17] Update the link of swagger file and release notes in opensds repo --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8c8f6ae7f..bb38025ee 100755 --- a/README.md +++ b/README.md @@ -8,11 +8,11 @@ -## Latest Release: v0.6.0 Capri +## Latest Release: v0.10.0 Daito -[OpenAPI doc](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/opensds/opensds/v0.6.0/openapi-spec/swagger.yaml) +[OpenAPI doc](http://petstore.swagger.io/?url=https://raw.githubusercontent.com/opensds/opensds/v0.10.0/openapi-spec/swagger.yaml) -[Release notes](https://github.com/opensds/opensds/releases/tag/v0.6.0) +[Release notes](https://github.com/opensds/opensds/releases/tag/v0.10.0) ## Introduction From c2878e69720a9c7a3cd897e792049e71b9a0ebd2 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 17:03:00 +0530 Subject: [PATCH 02/17] adding just for test --- .travis.yml | 1 + install/CI/test.py | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 install/CI/test.py diff --git a/.travis.yml b/.travis.yml index fc800010d..71d1f67fb 100755 --- a/.travis.yml +++ b/.travis.yml @@ -36,6 +36,7 @@ install: - make all script: + - python test.py - ./install/CI/coverage - ./install/CI/test diff --git a/install/CI/test.py b/install/CI/test.py new file mode 100644 index 000000000..5823087a2 --- /dev/null +++ b/install/CI/test.py @@ -0,0 +1,3 @@ +#!/bin/bash + +print "hello" \ No newline at end of file From a8c47078c1e241798c8a4e5f6b6f44d67df7dce1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 17:22:58 +0530 Subject: [PATCH 03/17] adding just for test1 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 71d1f67fb..8fc1dc9cf 100755 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ install: - make all script: - - python test.py + - python ./install/CI/test.py - ./install/CI/coverage - ./install/CI/test From 054a450b0f45508c1c52d5b50c8d1a9e725a354c Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 17:44:58 +0530 Subject: [PATCH 04/17] adding just for test2 --- .travis.yml | 3 +- install/CI/hotpot.py | 152 ++++++++++++++++++++++++++++++++++++++++ install/CI/hotpot.robot | 0 install/CI/test.py | 151 ++++++++++++++++++++++++++++++++++++++- 4 files changed, 304 insertions(+), 2 deletions(-) create mode 100644 install/CI/hotpot.py create mode 100644 install/CI/hotpot.robot diff --git a/.travis.yml b/.travis.yml index 8fc1dc9cf..752831830 100755 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ before_install: - sudo apt-get install -y librados-dev librbd-dev - sudo apt-get install -y lvm2 tgt open-iscsi - sudo docker pull p1c2u/openapi-spec-validator + - sudo pip install robotframework matrix: @@ -36,7 +37,7 @@ install: - make all script: - - python ./install/CI/test.py + - robot ./install/CI/hotpot.robot - ./install/CI/coverage - ./install/CI/test diff --git a/install/CI/hotpot.py b/install/CI/hotpot.py new file mode 100644 index 000000000..b3904dd0a --- /dev/null +++ b/install/CI/hotpot.py @@ -0,0 +1,152 @@ +#!/bin/bash + +import os +import subprocess, shlex +from cStringIO import StringIO +import time + +class Hotpot(object): + + def __init__(self): + self.stderr = None + self.stdout = None + + def retry_check(self, function_to_retry): + """ + Retries function passed in 5 times with a 1 second delay inbetween + each try. Function should be passed in with lambda to call the + function instead of just get its result. + """ + check_delay = 1 + check_max_attempts = 5 + + for retry_attempt in xrange(check_max_attempts): + result = function_to_retry() + if result == "available": + return result + + print("Attempt {0} of 5".format(retry_attempt + 1)) + if retry_attempt < 4: + print("Waiting {0} seconds before " + "rechecking".format(check_delay)) + time.sleep(check_delay) + + return result + + def get_index(self, output, arg): + strip_list = [] + for line in output: + if '|' in line: + list = line.split('|') + for item in list: + strip_list.append(item.strip()) + break + return strip_list.index(arg) + + def get_status(self, command): + strip_list = [] + stdout, stderr = self.run_command(command) + output = StringIO(stdout) + for line in output: + if 'Status' not in line and '|' in line: + linelist = line.split('|') + for item in linelist: + strip_list.append(item.strip()) + + return strip_list[self.get_index(StringIO(stdout), 'Status')] + + def get_id(self, stdout): + strip_list = [] + output = StringIO(stdout) + for line in output: + if 'Id' in line and '|' in line: + linelist = line.split('|') + for item in linelist: + strip_list.append(item.strip()) + id = strip_list[2] + return id + + def run_command(self, command): + # path = "/root/gopath/src/github.com/opensds/opensds/build/out/bin/" + print("Command: {0}".format(command)) + args = shlex.split(command) + print("Args: {0}".format(args)) + process = subprocess.Popen(args, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) + stdout, stderr = process.communicate() + if stderr != '': + raise Exception(stderr) + else: + print("Stdout: {0}".format(stdout)) + return stdout, stderr + + def hello_world(self): + print "BASIC HOTPOT TESTING!" + + def pool_list(self): + self.run_command('osdsctl pool list') + + def profile_list(self): + return self.run_command('osdsctl profile list') + + def dock_list(self): + self.run_command('osdsctl dock list') + + def volume_list(self): + self.run_command('osdsctl volume list') + + def fileshare_list(self): + self.run_command('osdsctl fileshare list') + + def version_list(self): + self.run_command('osdsctl version list') + + def volume_create(self): + stdout, stderr = self.run_command('osdsctl volume create 2 --name=vol1') + return self.get_id(stdout) + + def check_volume_status_available(self, volume_id): + time.sleep(5) + command = 'osdsctl volume list' + ' ' + '--id' + ' ' + volume_id + status = self.retry_check(lambda: self.get_status(command)) + if status != "available": + raise Exception("The volume status is: ",status) + + def volume_delete(self, volume_id): + command = 'osdsctl volume delete' + ' ' + volume_id + self.run_command(command) + + def fileshare_create(self): + stdout, stderr = self.run_command('osdsctl fileshare create 2 --name=randomfile') + return self.get_id(stdout) + + def check_fileshare_status_available(self, fileshare_id): + time.sleep(5) + command = 'osdsctl fileshare list' + ' ' + '--id' + ' ' + fileshare_id + status = self.retry_check(lambda: self.get_status(command)) + if status != "available": + raise Exception("The fileshare status is: ", status) + def fileshare_create_acl(self): + stdout, stderr = self.run_command('osdsctl fileshare create 2 --name=randomfile') + return self.get_id(stdout) + + def fileshare_delete(self, fileshare_id): + command = 'osdsctl fileshare delete' + ' ' + fileshare_id + self.run_command(command) + + def profile_create_block(self): + stdout, stderr = self.run_command('osdsctl profile create '"'"'{"name": "adefault_block_test", "description": "default policy", "storageType": "block"}'"'"'') + return self.get_id(stdout) + + def profile_delete_block(self, block_profile_id): + command = 'osdsctl profile delete' + ' ' + block_profile_id + self.run_command(command) + + def profile_create_file(self): + stdout, stderr = self.run_command('osdsctl profile create '"'"'{"name": "default_file_test", "description": "default policy", "storageType": "file", "provisioningProperties":{"ioConnectivity": {"accessProtocol": "NFS"},"DataStorage":{"StorageAccessCapability":["Read","Write","Execute"]}}}'"'"'') + return self.get_id(stdout) + + def profile_delete_file(self, file_profile_id): + command = 'osdsctl profile delete' + ' ' + file_profile_id + self.run_command(command) \ No newline at end of file diff --git a/install/CI/hotpot.robot b/install/CI/hotpot.robot new file mode 100644 index 000000000..e69de29bb diff --git a/install/CI/test.py b/install/CI/test.py index 5823087a2..b3904dd0a 100644 --- a/install/CI/test.py +++ b/install/CI/test.py @@ -1,3 +1,152 @@ #!/bin/bash -print "hello" \ No newline at end of file +import os +import subprocess, shlex +from cStringIO import StringIO +import time + +class Hotpot(object): + + def __init__(self): + self.stderr = None + self.stdout = None + + def retry_check(self, function_to_retry): + """ + Retries function passed in 5 times with a 1 second delay inbetween + each try. Function should be passed in with lambda to call the + function instead of just get its result. + """ + check_delay = 1 + check_max_attempts = 5 + + for retry_attempt in xrange(check_max_attempts): + result = function_to_retry() + if result == "available": + return result + + print("Attempt {0} of 5".format(retry_attempt + 1)) + if retry_attempt < 4: + print("Waiting {0} seconds before " + "rechecking".format(check_delay)) + time.sleep(check_delay) + + return result + + def get_index(self, output, arg): + strip_list = [] + for line in output: + if '|' in line: + list = line.split('|') + for item in list: + strip_list.append(item.strip()) + break + return strip_list.index(arg) + + def get_status(self, command): + strip_list = [] + stdout, stderr = self.run_command(command) + output = StringIO(stdout) + for line in output: + if 'Status' not in line and '|' in line: + linelist = line.split('|') + for item in linelist: + strip_list.append(item.strip()) + + return strip_list[self.get_index(StringIO(stdout), 'Status')] + + def get_id(self, stdout): + strip_list = [] + output = StringIO(stdout) + for line in output: + if 'Id' in line and '|' in line: + linelist = line.split('|') + for item in linelist: + strip_list.append(item.strip()) + id = strip_list[2] + return id + + def run_command(self, command): + # path = "/root/gopath/src/github.com/opensds/opensds/build/out/bin/" + print("Command: {0}".format(command)) + args = shlex.split(command) + print("Args: {0}".format(args)) + process = subprocess.Popen(args, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) + stdout, stderr = process.communicate() + if stderr != '': + raise Exception(stderr) + else: + print("Stdout: {0}".format(stdout)) + return stdout, stderr + + def hello_world(self): + print "BASIC HOTPOT TESTING!" + + def pool_list(self): + self.run_command('osdsctl pool list') + + def profile_list(self): + return self.run_command('osdsctl profile list') + + def dock_list(self): + self.run_command('osdsctl dock list') + + def volume_list(self): + self.run_command('osdsctl volume list') + + def fileshare_list(self): + self.run_command('osdsctl fileshare list') + + def version_list(self): + self.run_command('osdsctl version list') + + def volume_create(self): + stdout, stderr = self.run_command('osdsctl volume create 2 --name=vol1') + return self.get_id(stdout) + + def check_volume_status_available(self, volume_id): + time.sleep(5) + command = 'osdsctl volume list' + ' ' + '--id' + ' ' + volume_id + status = self.retry_check(lambda: self.get_status(command)) + if status != "available": + raise Exception("The volume status is: ",status) + + def volume_delete(self, volume_id): + command = 'osdsctl volume delete' + ' ' + volume_id + self.run_command(command) + + def fileshare_create(self): + stdout, stderr = self.run_command('osdsctl fileshare create 2 --name=randomfile') + return self.get_id(stdout) + + def check_fileshare_status_available(self, fileshare_id): + time.sleep(5) + command = 'osdsctl fileshare list' + ' ' + '--id' + ' ' + fileshare_id + status = self.retry_check(lambda: self.get_status(command)) + if status != "available": + raise Exception("The fileshare status is: ", status) + def fileshare_create_acl(self): + stdout, stderr = self.run_command('osdsctl fileshare create 2 --name=randomfile') + return self.get_id(stdout) + + def fileshare_delete(self, fileshare_id): + command = 'osdsctl fileshare delete' + ' ' + fileshare_id + self.run_command(command) + + def profile_create_block(self): + stdout, stderr = self.run_command('osdsctl profile create '"'"'{"name": "adefault_block_test", "description": "default policy", "storageType": "block"}'"'"'') + return self.get_id(stdout) + + def profile_delete_block(self, block_profile_id): + command = 'osdsctl profile delete' + ' ' + block_profile_id + self.run_command(command) + + def profile_create_file(self): + stdout, stderr = self.run_command('osdsctl profile create '"'"'{"name": "default_file_test", "description": "default policy", "storageType": "file", "provisioningProperties":{"ioConnectivity": {"accessProtocol": "NFS"},"DataStorage":{"StorageAccessCapability":["Read","Write","Execute"]}}}'"'"'') + return self.get_id(stdout) + + def profile_delete_file(self, file_profile_id): + command = 'osdsctl profile delete' + ' ' + file_profile_id + self.run_command(command) \ No newline at end of file From 29a49e7d069db95284dc2fd0e28f8c8f5adc9ca5 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 17:53:26 +0530 Subject: [PATCH 05/17] adding just for test3 --- .travis.yml | 2 +- install/CI/hotpot.robot | 71 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 752831830..fe9651e7c 100755 --- a/.travis.yml +++ b/.travis.yml @@ -37,7 +37,7 @@ install: - make all script: - - robot ./install/CI/hotpot.robot + - robot install/CI/hotpot.robot - ./install/CI/coverage - ./install/CI/test diff --git a/install/CI/hotpot.robot b/install/CI/hotpot.robot index e69de29bb..dc60fcec5 100644 --- a/install/CI/hotpot.robot +++ b/install/CI/hotpot.robot @@ -0,0 +1,71 @@ +*** Settings *** +Library hotpot.Hotpot WITH NAME CLI + +*** Variables *** +${volume_id} "" +${fileshare_id} "" +${file_profile_id} "" +${block_profile_id} "" + +*** Test Cases *** +1st Hotpot Test + CLI.Hello World + +Version List + CLI.Version List + +Dock List + CLI.Dock List + +Profile List + ${out} ${err} = CLI.Profile List + Log Profile output is ${out} + +Pool List + CLI.Pool List + +Volume List + CLI.Volume List + +Fileshare List + CLI.Fileshare List + +Profile Create Block + ${block_profile_id} = CLI.Profile Create Block + Set Global Variable ${block_profile_id} + Log The block_profile_id is ${block_profile_id} + +Profile Create File + ${file_profile_id} = CLI.Profile Create File + Set Global Variable ${file_profile_id} + Log The file_profile_id is ${file_profile_id} + +Volume Create + ${volume_id} = CLI.Volume Create + Set Global Variable ${volume_id} + Log The volume_id is ${volume_id} + +Check Volume Status Available + CLI.Check volume status available ${volume_id} + +Volume Delete + Log The volume_id is ${volume_id} + CLI.Volume Delete ${volume_id} + +Fileshare Create + ${fileshare_id} = CLI.Fileshare Create + Set Global Variable ${fileshare_id} + Log The volume_id is ${fileshare_id} + +Check FileShare Status Available + CLI.Check fileshare status available ${fileshare_id} + +Fileshare Delete + Log The fileshare_id is ${fileshare_id} + CLI.Fileshare Delete ${fileshare_id} + +Profile Delete File + CLI.Profile Delete File ${file_profile_id} + +Profile Delete Block + CLI.Profile Delete Block ${block_profile_id} From 3840380ad33811252185562120e573ea95fc5670 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 18:03:38 +0530 Subject: [PATCH 06/17] adding just for test4 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index fe9651e7c..dd15c28ee 100755 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,7 @@ install: - make all script: + - export PYTHONPATH=/root/gopath/src/github.com/opensds/opensds/install/CI - robot install/CI/hotpot.robot - ./install/CI/coverage - ./install/CI/test From 3b662e934d51b9f95ae1c9c1b91fcdb60e07a319 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 18:08:57 +0530 Subject: [PATCH 07/17] adding just for test5 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dd15c28ee..9caf2329f 100755 --- a/.travis.yml +++ b/.travis.yml @@ -37,7 +37,7 @@ install: - make all script: - - export PYTHONPATH=/root/gopath/src/github.com/opensds/opensds/install/CI + - export PYTHONPATH=/home/travis/gopath/src/github.com/opensds/opensds/install/CI/ - robot install/CI/hotpot.robot - ./install/CI/coverage - ./install/CI/test From c1fd49fdc445eb2eb0ad6911c04e446d36b37b98 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 18:17:49 +0530 Subject: [PATCH 08/17] adding just for test6 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 9caf2329f..e557fcaeb 100755 --- a/.travis.yml +++ b/.travis.yml @@ -38,6 +38,7 @@ install: script: - export PYTHONPATH=/home/travis/gopath/src/github.com/opensds/opensds/install/CI/ + - cp build/out/bin/osdsctl /usr/local/bin/ - robot install/CI/hotpot.robot - ./install/CI/coverage - ./install/CI/test From f982e76ba85d9e0136f03577c3b0048f94ebe19d Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 18:22:51 +0530 Subject: [PATCH 09/17] adding just for test7 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e557fcaeb..5f26c0f8f 100755 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,7 @@ install: script: - export PYTHONPATH=/home/travis/gopath/src/github.com/opensds/opensds/install/CI/ - - cp build/out/bin/osdsctl /usr/local/bin/ + - sudo cp build/out/bin/osdsctl /usr/local/bin/ - robot install/CI/hotpot.robot - ./install/CI/coverage - ./install/CI/test From 12ab42e0038f6e8e7daed410c7170c9fa59a60d7 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 18:38:49 +0530 Subject: [PATCH 10/17] adding just for test8 --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5f26c0f8f..5649d68d9 100755 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,10 @@ matrix: install: # Build OpenSDS Controller source code - make all + # Start lvm e2e test + - split_line "Start lvm e2e test" + - sudo $OPENSDS_DIR/install/devsds/install.sh + - ps -ef|grep osds script: - export PYTHONPATH=/home/travis/gopath/src/github.com/opensds/opensds/install/CI/ From 9e05cdb0dbe8778ec31f47dbcf0dac99b41b9f0e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 18:44:23 +0530 Subject: [PATCH 11/17] adding just for test9 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5649d68d9..98437ee2a 100755 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ install: # Build OpenSDS Controller source code - make all # Start lvm e2e test - - split_line "Start lvm e2e test" + # - split_line "Start lvm e2e test" - sudo $OPENSDS_DIR/install/devsds/install.sh - ps -ef|grep osds From 7febe775bdbe7559816d2cf6d658120a82786940 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jan 2020 18:51:09 +0530 Subject: [PATCH 12/17] adding just for test10 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 98437ee2a..ac1b7b654 100755 --- a/.travis.yml +++ b/.travis.yml @@ -37,7 +37,7 @@ install: - make all # Start lvm e2e test # - split_line "Start lvm e2e test" - - sudo $OPENSDS_DIR/install/devsds/install.sh + - sudo ./install/devsds/install.sh - ps -ef|grep osds script: From 1848cbdeb8106d3caa0e650cb344b5c0a4d2ccab Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jan 2020 11:11:11 +0530 Subject: [PATCH 13/17] adding just for test11 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index ac1b7b654..8a135fd14 100755 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,7 @@ install: - make all # Start lvm e2e test # - split_line "Start lvm e2e test" + - sudo ./install/devsds/uninstall.sh --purge - sudo ./install/devsds/install.sh - ps -ef|grep osds From b11ddd72e02875acc3a53e0b16056a7be5e56da6 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jan 2020 11:20:37 +0530 Subject: [PATCH 14/17] adding just for test12 --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a135fd14..27ad21e33 100755 --- a/.travis.yml +++ b/.travis.yml @@ -37,9 +37,9 @@ install: - make all # Start lvm e2e test # - split_line "Start lvm e2e test" - - sudo ./install/devsds/uninstall.sh --purge - - sudo ./install/devsds/install.sh - - ps -ef|grep osds + - sudo install/devsds/uninstall.sh --purge + - sudo install/devsds/install.sh + - sudo echo $(ps -ef |grep osds) script: - export PYTHONPATH=/home/travis/gopath/src/github.com/opensds/opensds/install/CI/ From 33f1f6ea2feb0df7010e72f4971a166d7e8e5e38 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jan 2020 12:02:03 +0530 Subject: [PATCH 15/17] adding just for test13 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 27ad21e33..be6d385aa 100755 --- a/.travis.yml +++ b/.travis.yml @@ -45,6 +45,7 @@ script: - export PYTHONPATH=/home/travis/gopath/src/github.com/opensds/opensds/install/CI/ - sudo cp build/out/bin/osdsctl /usr/local/bin/ - robot install/CI/hotpot.robot + - sudo cat /home/travis/gopath/src/github.com/opensds/opensds/output.xml - ./install/CI/coverage - ./install/CI/test From c10ccb972e043ceb48570bc6459b22bcd078ecf3 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jan 2020 12:30:46 +0530 Subject: [PATCH 16/17] adding just for test14 --- .travis.yml | 2 ++ install/CI/hotpot.py | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index be6d385aa..7fa73087a 100755 --- a/.travis.yml +++ b/.travis.yml @@ -44,6 +44,8 @@ install: script: - export PYTHONPATH=/home/travis/gopath/src/github.com/opensds/opensds/install/CI/ - sudo cp build/out/bin/osdsctl /usr/local/bin/ + - sudo export OPENSDS_AUTH_STRATEGY=noauth + - sudo export OPENSDS_ENDPOINT=http://localhost:50040 - robot install/CI/hotpot.robot - sudo cat /home/travis/gopath/src/github.com/opensds/opensds/output.xml - ./install/CI/coverage diff --git a/install/CI/hotpot.py b/install/CI/hotpot.py index b3904dd0a..34f59daa5 100644 --- a/install/CI/hotpot.py +++ b/install/CI/hotpot.py @@ -85,13 +85,13 @@ def hello_world(self): print "BASIC HOTPOT TESTING!" def pool_list(self): - self.run_command('osdsctl pool list') + self.run_command('build/out/bin/osdsctl pool list') def profile_list(self): return self.run_command('osdsctl profile list') def dock_list(self): - self.run_command('osdsctl dock list') + self.run_command('build/out/bin/osdsctl dock list') def volume_list(self): self.run_command('osdsctl volume list') @@ -103,7 +103,7 @@ def version_list(self): self.run_command('osdsctl version list') def volume_create(self): - stdout, stderr = self.run_command('osdsctl volume create 2 --name=vol1') + stdout, stderr = self.run_command('build/out/bin/osdsctl volume create 1 --name=vol1') return self.get_id(stdout) def check_volume_status_available(self, volume_id): @@ -149,4 +149,4 @@ def profile_create_file(self): def profile_delete_file(self, file_profile_id): command = 'osdsctl profile delete' + ' ' + file_profile_id - self.run_command(command) \ No newline at end of file + self.run_command(command) From 4283cccbd3fb4e442265e447310dcec0f2183cf8 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jan 2020 12:42:31 +0530 Subject: [PATCH 17/17] adding just for test15 --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7fa73087a..cc54ddbec 100755 --- a/.travis.yml +++ b/.travis.yml @@ -39,13 +39,15 @@ install: # - split_line "Start lvm e2e test" - sudo install/devsds/uninstall.sh --purge - sudo install/devsds/install.sh + - export OPENSDS_AUTH_STRATEGY=noauth + - export OPENSDS_ENDPOINT=http://localhost:50040 - sudo echo $(ps -ef |grep osds) script: - export PYTHONPATH=/home/travis/gopath/src/github.com/opensds/opensds/install/CI/ - sudo cp build/out/bin/osdsctl /usr/local/bin/ - - sudo export OPENSDS_AUTH_STRATEGY=noauth - - sudo export OPENSDS_ENDPOINT=http://localhost:50040 + - sudo vgs + - sudo vgdisplay - robot install/CI/hotpot.robot - sudo cat /home/travis/gopath/src/github.com/opensds/opensds/output.xml - ./install/CI/coverage