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)

enhancement
Not set
normal

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.
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.
++ 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. ```
I like it!
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
We still need to updated tc-lib-testing, right?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Just landed. Sorry for delay, taking the training today.
It's bug 1460026 that needs to land first, I think.
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
Done!
Status: REOPENED → RESOLVED
Closed: 7 years ago6 years ago
Resolution: --- → FIXED
Component: Redeployability → Services
You need to log in before you can comment on or make changes to this bug.