Closed
Bug 1459433
Opened 7 years ago
Closed 6 years ago
We should figure out a way to get fakeauth from tc-lib-testing to not hardcode taskcluster.net
Categories
(Taskcluster :: Services, enhancement)
Taskcluster
Services
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bstack, Assigned: dustin)
References
Details
Currently this is the most obvious place I can find in testing where we hardcode taskcluster.net.
I haven't thought this through very hard yet. Perhaps we should just change this to be a tracker bug for removing hardcoded tc.net everywhere in tests? Feel free to rename/reassign if so.
Assignee | ||
Comment 1•7 years ago
|
||
What if we invented a universally-observed "fake" rootUrl for testing? `https://tc-tests.localhost` perhaps? Then fakeauth could fake that with nock, for example.
Reporter | ||
Comment 2•7 years ago
|
||
++ I support that plan. Perhaps we can even make this a thing on tc-lib-urls?
```
const tcUrl = require('taskcluster-lib-urls');
tcUrl.testRootUrl(); // Or some better name.
```
Assignee | ||
Comment 3•7 years ago
|
||
I like it!
Assignee | ||
Comment 4•7 years ago
|
||
https://github.com/taskcluster/taskcluster-lib-urls/pull/1 fixes this, I think?
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 5•7 years ago
|
||
We still need to updated tc-lib-testing, right?
Assignee | ||
Updated•7 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 6•7 years ago
|
||
WIP at https://github.com/taskcluster/taskcluster-lib-testing/compare/master...djmitche:bug1459433?expand=1 but I need tc-lib-api updates before I can test that.
Depends on: 1460026
Reporter | ||
Comment 7•7 years ago
|
||
Just landed. Sorry for delay, taking the training today.
Assignee | ||
Comment 8•7 years ago
|
||
It's bug 1460026 that needs to land first, I think.
Comment 9•6 years ago
|
||
Commit pushed to master at https://github.com/taskcluster/taskcluster-lib-testing
https://github.com/taskcluster/taskcluster-lib-testing/commit/d30f13e6aa6d293cd2178aca75bca166eaa2e572
Redeployability Great Library Update - 10.0 (#27)
Updates to support redeployability
* Bug 1459433 - remove babel
* Bug 1459433 - make fakeauth fake a specified rootUrl
* Bug 1459433 - require node > 8
* Bug 1459433 - upgrade to the latest taskcluster-client, but fetch secrets with superagent since taskcluster-proxy does not present as a rootUrl
* Bug 1459433 - pass apis, not routers, to tc-lib-app
Assignee | ||
Comment 10•6 years ago
|
||
Done!
Status: REOPENED → RESOLVED
Closed: 7 years ago → 6 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: Redeployability → Services
You need to log in
before you can comment on or make changes to this bug.
Description
•