From 1d3d96e07b48bf50eca6764560e486cbd231d209 Mon Sep 17 00:00:00 2001 From: hayderimran7 Date: Fri, 11 Dec 2015 18:32:15 -0800 Subject: [PATCH] Fix docs instructions for test upload There are several things wrong in this doc: - pub key and signature must be uploaded via UI otherwise user gets `Bad Request Request doesnt correspond to schema` - upload can be done with --insecure when a user has cert issue of https://refstack.openstack.org/api - add explicit mention of where the test json file is produced so its easy to find when running vanilla refstack. Change-Id: I85ac6c4dc4589d7e4c54f162723d432c40875a9f closes-bug: 1525458 --- doc/uploading-private-results.md | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/doc/uploading-private-results.md b/doc/uploading-private-results.md index c85c9219..9c49d051 100644 --- a/doc/uploading-private-results.md +++ b/doc/uploading-private-results.md @@ -69,16 +69,27 @@ Sign into [https://refstack.openstack.org](https://refstack.openstack.org) with your OpenStack ID. Click the "Profile" link in the upper right corner. Now click the "Import public key" button on your profile page. A popup window with two entry fields will appear. Just copy and paste the key and signature -generated in the previous step into the corresponding textboxes. Note that -the strings 'Public key:' and 'Self signature:' are not needed here. Once -complete, click the 'Import public key' button. +generated in the previous step into the corresponding textboxes. + +Note that the literal strings 'Public key:' and 'Self signature:' from the refstack-client "sign" command output should not be copied/pasted into the text boxes. Otherwise you will get an error like: + +- `Bad Request Request doesnt correspond to schema` + + Once complete, click the 'Import public key' button. ####Upload the test result with refstack-client -- `./refstack-client upload /path_to_testresult_json_file --url https://refstack.openstack.org/api -i ~/.ssh/id_rsa` +- `./refstack-client upload /path_to_testresult_json_file --url https://refstack.openstack.org/api -i ~/.ssh/id_rsa` -The 'path\_to\_testresult\_json\_file' here is the json file of your test -result. If the command runs correctly, there will be output like below: +** NOTE ** Users may need to add the '--insecure' optional agrument to the command string if certificate validation issues occur when uploading test result. To use with insecure: + +- `./refstack-client upload --insecure /path_to_testresult_json_file --url https://refstack.openstack.org/api -i ~/.ssh/id_rsa` + +The `path_to_testresult_json_file` here is the json file of your test result. +By default, it's in `.tempest/.testrespository/.json` where refstack-client runs from. +Here '' is a serial number that matches its corresponding subunit file name. + +If the command runs correctly, there will be output like below: Test results will be uploaded to https://refstack.openstack.org/api. Ok? (yes/y): y Test results uploaded!