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

crate / croud / 727
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: h/region-header
DEFAULT BRANCH: master
Ran 19 Mar 2020 03:35PM UTC
Jobs 3
Files 32
Run time 24s
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

pending completion
727

Pull #264

travis-ci

web-flow
Always use API region from config to make API calls

This commit changes the way how the `--region` argument is used for API
calls. Where previously this argument temporarily overwrote the `region`
setting from the configuration to invoke HTTP requests on the specified
region specific subdomain of `cratedb[-dev].cloud`, API requests are now
always invoked on the region specified in the configuration. However,
the HTTP request header `X-Region` is set to the value specified using
the `--region` argument, or if not present, to the value of the region
configuration setting.
This is however not the case for the `croud config set` command! This
command still sets the configuration value.

```
croud config set --region eastus2.azure --env prod

croud clusters list
\# uses the API endpoint at https://eastus2.azure.cratedb.cloud/
\# sets the X-Region header to "eastus2.azure"
\# lists all clusters of the region eastus2.azure

croud clusters list --region westeurope.azure
\# still uses the API endpoint at https://eastus2.azure.cratedb.cloud/
\# sets the X-Region header to "westeurope.azure"
\# lists all clusters of the region westeurope.azure
```

*This change requires a CrateDB Cloud version that implements the
functionality of the `X-Region` HTTP header.*
Pull Request #264: Always use API region from config to make API calls

9 of 9 new or added lines in 2 files covered. (100.0%)

782 of 826 relevant lines covered (94.67%)

2.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 727.1 19 Mar 2020 03:35PM UTC 0
94.68
Travis Job 727.1
2 727.2 19 Mar 2020 03:35PM UTC 0
94.68
Travis Job 727.2
3 727.3 19 Mar 2020 03:35PM UTC 0
94.69
Travis Job 727.3
Source Files on build 727
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #727
  • Pull Request #264
  • PR Base - master (#709)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc