CiDuty ToolTool End-to-End test
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
People
(Reporter: dlabici, Unassigned)
Details
Hello, just filling a bug for history as we will be going to test the new TC based token and ensure that we don't have any
From ToolTool Doc1:
who is the responsible person and which is the responsible team
dlabici and apop
what is the purpose of usage
Test functionality of the new TC tokens
what should be the expiration date of the credentials (suggested is one year)
Default 1 year, but we will delete the test tokens when everything has been tested
which level of access is required: - Download PUBLIC files from tooltool. - Download INTERNAL files from tooltool. - Upload PUBLIC files to tooltool. - Upload INTERNAL files to tooltool. - Manage tooltool files, including deleting and changing visibility levels.
All of them :)
Comment 1•7 years ago
•
|
||
After setting up the token and connecting to the VPN, I've tried to upload a file.
Tried with the following access types :
- upload public - it gave me an error : ERROR - 403 Forbidden: no permission to upload public files: no permission to upload public files
- upload internal - it gave me an error : ERROR - 403 Forbidden: no permission to upload public files: no permission to upload public files
I've also checked if the file is available on tooltool.
| Reporter | ||
Comment 2•7 years ago
|
||
I have the same issues listed by :apop
this is a copy/past of the verbose mode:
python tooltool.py upload --message "Bug 1551180 - Test TC token" -v --authentication-file=token.json
DEBUG - processing 'upload' command with args ''
DEBUG - using options: {'cache_folder': None, 'algorithm': 'sha512', 'loglevel': 10, 'region': None, 'base_url': ['https://tooltool.mozilla-releng.net/'], 'visibility': None, 'manifest': 'manifest.tt', 'version': None, 'auth_file': 'token.json', 'message': 'Bug 1551180 - Test TC token', 'unpack': False, 'overwrite': False, 'size': 0.0}
DEBUG - materialized __main__.FileRecord(filename='deleteme-dlabici.txt', size=103, digest='07de69f22878c1f8533b63fb7e09380def2e383a4de9fcdbdcf0b24f803c23d4db7bdc3ff5c2228ad251398a59d158b8a73200bc10f95772ad93fe4671e0440f', algorithm='sha512', visibility=u'public')
DEBUG - loaded manifest from file 'manifest.tt'
DEBUG - hashed u'deleteme-dlabici.txt' with sha512 to be 07de69f22878c1f8533b63fb7e09380def2e383a4de9fcdbdcf0b24f803c23d4db7bdc3ff5c2228ad251398a59d158b8a73200bc10f95772ad93fe4671e0440f
DEBUG - calculating payload hash from:
['hawk.1.payload\n',
'post\n',
'{"files": {"deleteme-dlabici.txt": {"visibility": "public", "algorithm": "sha512", "digest": "07de69f22878c1f8533b63fb7e09380def2e383a4de9fcdbdcf0b24f803c23d4db7bdc3ff5c2228ad251398a59d158b8a73200bc10f95772ad93fe4671e0440f", "size": 103}}, "message": "Bug 1551180 - Test TC token"}',
'\n']
DEBUG - normalized resource for mac calc: hawk.1.header
1557754158
675Oxh
POST
/upload
tooltool.mozilla-releng.net
443
34rzaAltYcAt56wjwWAg1EYcvhI+zvTeUH/U/ArDPuM=
DEBUG - Hawk header for URL=https://tooltool.mozilla-releng.net/upload method=POST: Hawk mac="WckUFaRra00xR/VxUemZ6nju/fqb1QLh1BNNkn4e87w=", hash="34rzaAltYcAt56wjwWAg1EYcvhI+zvTeUH/U/ArDPuM=", id="project/releng/services/tooltool/bug-1551180-dlabici", ts="1557754158", nonce="675Oxh"
DEBUG - Using taskcluster credentials in token.json
ERROR - 403 Forbidden: no permission to upload public files: no permission to upload public files
Comment 3•7 years ago
|
||
:dlabici :apop hey, i'm back to work (finally!)
The problem with tooltool.py was in some refractoring I did in tooltool.py. I fixed this yesterday in https://github.com/mozilla/release-services/pull/2084 and now it works.
Please redownload tooltool.py from https://github.com/mozilla/release-services/blob/master/src/tooltool/client/tooltool.py before you continue testing.
I will be around on IRC/Slack if you need some help.
| Reporter | ||
Comment 4•7 years ago
|
||
Hey Rok,
Thanks for the time on Zoom :)
CiDuty managed to test everything (with the exception of deleting a file or changing a file's visibility) and everything looks good!
Here you can see the suit of tests we have done, post-meeting.
https://docs.google.com/spreadsheets/d/1mR6M529ZVfXkHbKchIVNjVIV3o3qy-d6PT1pf9rnJ20/edit?usp=sharing
| Assignee | ||
Updated•4 years ago
|
Description
•