[VAL-47] Helm repository test fails Created: 12/Sep/19  Updated: 12/Sep/19  Resolved: 12/Sep/19

Status: Done
Project: Validation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Juha Kosonen Assignee: Juha Kosonen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Robot Helm repository tests fails at suite setup in REC

[cloudadmin@controller-1 ~]$ cat /etc/product-release 
release=TA-1
build=126

 

/ # robot -b debug.txt -V /opt/akraino/validation/tests/variables.yaml -v LOG_PATH:/logs /opt/akraino/validation/tests/helm/helm_reposit
ory.robot 
==============================================================================
Helm Repository :: Tests to validate Helm chart repositories. 
==============================================================================
Chart Storing | FAIL |
Parent suite setup failed:
'' should not be empty.
------------------------------------------------------------------------------
Upload Already Uploaded Chart | FAIL |
Parent suite setup failed:
'' should not be empty.
------------------------------------------------------------------------------
Chart Removal | FAIL |
Parent suite setup failed:
'' should not be empty.
------------------------------------------------------------------------------
Delete Already Deleted Chart | FAIL |
Parent suite setup failed:
'' should not be empty.
------------------------------------------------------------------------------
Helm Repository :: Tests to validate Helm chart repositories. | FAIL |
Suite setup failed:
'' should not be empty.
4 critical tests, 0 passed, 4 failed
4 tests total, 0 passed, 4 failed
==============================================================================
Debug: /debug.txt
Output: /output.xml
Log: /log.html
Report: /report.html

 

The failure is due fact that the test case is expecting at least one space char between the repository name and url in repo list. In this case the separator is actually a horizontal tab control character:

 

$ helm repo list
NAME URL 
default https://chart-repo.kube-system.svc.rec.io:8088/charts
$ helm repo list | grep '^default' | hexdump -C
00000000 64 65 66 61 75 6c 74 09 68 74 74 70 73 3a 2f 2f |default.https://|
00000010 63 68 61 72 74 2d 72 65 70 6f 2e 6b 75 62 65 2d |chart-repo.kube-|
00000020 73 79 73 74 65 6d 2e 73 76 63 2e 72 65 63 2e 69 |system.svc.rec.i|
00000030 6f 3a 38 30 38 38 2f 63 68 61 72 74 73 0a |o:8088/charts.|
0000003e

 



 Comments   
Comment by Juha Kosonen [ 12/Sep/19 ]

Fixed:  https://gerrit.akraino.org/r/c/validation/+/1573

Generated at Sat Feb 10 06:06:53 UTC 2024 using Jira 9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1.