• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sgerrand / ex_teya / 36274656557 / 1
100%
main: 100%

Build:
DEFAULT BRANCH: main
Ran 26 Sep 2026 09:57PM UTC
Files 24
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Sep 2026 09:57PM UTC coverage: 100.0%. Remained the same
36274656557.1

push

github

web-flow
feat!: add a staging environment and use the token URL Teya documents (#48)

* feat!: add a staging environment and use the token URL Teya documents

config :teya, environment: :staging now points the library at Teya's
staging API and token endpoint, with :production the default. :base_url
and :token_url still win over the environment's URLs.

The default token URL moves from https://identity.teya.com/connect/token
to https://id.teya.com/oauth/v2/oauth-token, the client credentials token
endpoint every Teya spec gives. The staging one, id.teya.xyz, only exists
in that form, so both environments now follow the specs.

The default URLs were written out in five modules. They now live only in
Teya.HTTP, whose base_url/0 and token_url/0 every module uses.

BREAKING CHANGE: without :token_url set, tokens are now fetched from
https://id.teya.com/oauth/v2/oauth-token instead of
https://identity.teya.com/connect/token. To keep the old endpoint, set
config :teya, token_url: "https://identity.teya.com/connect/token".

* fix(http): check the environment even when both URLs are set

An unknown :environment only raised when a URL was missing, so with both
:base_url and :token_url set it passed at boot. The environment is now
read first. It may also be given as text, as System.get_env/2 gives it,
and an empty URL counts as not set.

Config.base_url is dropped: nothing read it, and every request uses
HTTP.base_url/0. The error message lists the environments from the map.

Tests now fetch a token from the stubbed /oauth/v2/oauth-token endpoint
for both environments, checking the host, path and form body, and the
test fixtures and CLAUDE.md use that path instead of /connect/token.

* docs: say what goes wrong if the environment changes while running

The docs said changing :environment takes a restart, which is only true of
the token endpoint. The auth process keeps its startup token URL and its
cached token, while API calls read :environment and :base_url on every
req... (continued)

367 of 367 relevant lines covered (100.0%)

35.13 hits per line

Source Files on job 36274656557.1
  • Tree
  • List 24
  • Changed 6
  • Source Changed 6
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 36274656557
  • da3a4d80 on github
  • Prev Job for on main (#36260329413.1)
  • Next Job for on main (#36275593739.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc