Target name in the downloaded list's name

When downloading a test list from [1] (click on Test List link)
include the target name in the filename.

Example for the orchestration target:
Current name of the file would be: 2020.11-test-list.txt
The new name will be: orchestration.2020.11-test-list.txt
Or the compute target:
2020.11-test-list.txt -> compute.2020.11-test-list.txt

[1] https://refstack.openstack.org/#/guidelines

Change-Id: I3337120e16e59c9e48a6a0b1d37f877e4b839a13
This commit is contained in:
Martin Kopec 2021-03-07 14:25:01 +00:00
parent 0074bf3b70
commit 72ea5b0e8a
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
</span> </span>
</div> </div>
<p ng-hide="modal.error"> Alternatively, get the test list directly from the API on your CLI:</p> <p ng-hide="modal.error"> Alternatively, get the test list directly from the API on your CLI:</p>
<code ng-hide="modal.error">wget "{{modal.testListUrl}}" -O {{modal.version}}-test-list.txt</code> <code ng-hide="modal.error">wget "{{modal.testListUrl}}" -O {{modal.target}}.{{modal.version}}-test-list.txt</code>
</div> </div>
<div class="modal-body tests-modal-content"> <div class="modal-body tests-modal-content">
<div cg-busy="{promise:modal.testListRequest,message:'Loading'}"></div> <div cg-busy="{promise:modal.testListRequest,message:'Loading'}"></div>
@ -36,7 +36,7 @@
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a target="_blank" href="{{modal.testListUrl}}" download="{{modal.version + '-test-list.txt'}}"> <a target="_blank" href="{{modal.testListUrl}}" download="{{modal.target + '.' +modal.version_file + '-test-list.txt'}}">
<button class="btn btn-primary" ng-if="modal.testListCount > 0" type="button"> <button class="btn btn-primary" ng-if="modal.testListCount > 0" type="button">
Download Download
</button> </button>