Closed jmartin-sul closed 5 years ago
lgtm. testing the client code now with trellis running locally. wondering what to do about the failing test.
@cmh2166 said:
wondering what to do about the failing coverage test
i think i need to work with @atz to fix the tests so that they can take a <hostname>:<port>
that works for circle. i was already figuring that the hardcoded localhost
was a hack that'd have to go.
@cmh2166 said:
wondering what to do about the failing coverage test
i think i need to work with @atz to fix the tests so that they can take a
<hostname>:<port>
that works for circle. i was already figuring that the hardcodedlocalhost
was a hack that'd have to go.
yeah, that makes sense, i saw your comment on hardcoding above. have you and @atz gotten further on the orchestration questions around where to deploy trellis (and possibly have the swagger spec there, with the client code eventually going into front end codebases)/
we've discussed it some, but i don't think we came up with any clear answers yet. i just pinged him on slack to try to pair for a bit this afternoon on it.
FYI with this commit (https://github.com/trellis-ldp/trellis-ext-db/commit/497144deaa09ab43aa90f78f92fd8e4eb1ccaef9) you can now set the Trellis HTTP port with an environment variable such as: TRELLIS_HTTP_PORT=9999
and/or TRELLIS_ADMIN_HTTP_PORT=9998
ok, i cleaned up the commits to get a passing CI build using the nascent swagger-codegen based tests.
left to do:
Hi John, looks good to me. Made some minor comments but nothing blocking. Do you think this client code should be an imported node module by the Sinopia Editor for making API calls?
Thanks, Jeremy
@jermnelson or @ndushay, might i get one of you to merge if there are no objections? or to at least approve so this doesn't look like a totally unwarranted self-merge? 😁
/repository
as the root of our paths (instead of/resources
), as per pairing with @cmh2166 and @jermnelson a few weeks ago to explore trellis functionality.swagger-codegen
provided us.note: tests currently hardcoded to expect trellis to be running on
http://localhost:8080
(:8081
for/healthcheck
).we'll prob need to fix that to play nicely with CI (edit: and indeed, this is breaking the build).closes #10