13 Commits
Author SHA1 Message Date
shadowdaoandClaude Sonnet 5.5 4cb3bda43a Add fork notice, NOTICE file, README/CONTRIBUTING rewrite; drop HashiCorp logo assets
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 09:53:17 -07:00
Vivek Kumar 6f26bcd22c fix:typo error in CONTRIBUTING.md (#3965) 2023-11-01 16:29:21 -04:00
Michael Gaffney 41bdfb4406 fix(db): Fix time zone consistency issues in monthly billing views
The hcp monthly billing views build a range of buckets using the
`generate_series` and the `now()` functions along with relative offsets
like `+ 1 month`. The calculated start and end times for these views can
vary depending on the time zone setting of the PostgreSQL server.

This adds 3 table functions that call their respective views with the
time zone set to UTC. Calling these functions instead of their
underlying views directly prevents the returned values from varying when
the server's time zone is not set to UTC.

This also drops support for PostgreSQL 11. The included tests use the
`date_trunc(field, source [, time_zone ])` function added in PostgreSQL
12.

Fixes: 41b1b5b4b7
2023-06-05 12:48:15 -04:00
Michael Gaffney 2fabfd99e5 docs: add database indexes under performance in contributing guide (#1881) 2022-03-02 08:00:37 -05:00
Timothy Messier 0a4df95fdd ci: Run sdk and api tests in ci
This adds new makefile targets and configuration to run the tests in the
api and sdk modules. These do not run by default since `go test ./...`
does not cross module boundaries.
2021-12-02 07:27:54 -05:00
Timothy Messier 35a7c4f6e7 feat(dbtest): Make test container name configurable 2021-11-03 07:44:51 -04:00
Jim a679300b50 feature (events): Classify auth method request/resp messages for audit events. (#1640)
* refactor (oidc): Stop emitting error for not found token id

Stop emitting errors when authtoken repo.IssueAuthToken is called and
there's if no pending token.  It's not an "normal" state and not
an error condition.

* feature (audit tagging): Add tags for auth method requests/responses

Including testing functions for asserting audit events created
when a service is called
2021-10-27 09:37:14 -04:00
Timothy Messier ecdcf72e0e ci: Update Makefile with new targets for testing
This updates the test-ci target to startup the test database container
first, wait for it to be ready, and then start running the tests.

It also creates some new targets for local devs. Prior to running any
tests either via `make test` or `go test`, the database should be
started with:

    make test-database-up

It can take a few seconds for the database to fully initialize, the
status can be checked with:

    docker logs -f boundary-sql-tests

This database can be stopped and destroyed with:

    make test-database-down

In general it should only need to be restarted when new migrations are
added. But it might also be necessary to restart if some tests fail in
an unexpected way and fail to do cleanup steps.
2021-09-09 13:42:01 -04:00
Jeff MalnickandJasmine Dahilig 4ea5aa0014 docs: update contributing guide with pronoun expectations (#1014)
* docs: update contributing guide with pronoun expectation and link to community guidelines

* Update CONTRIBUTING.md

Co-authored-by: Jasmine Dahilig <jasmine@dahilig.com>

Co-authored-by: Jasmine Dahilig <jasmine@dahilig.com>
2021-03-18 08:46:03 -07:00
s-christoff 5dc821a41e Add testing section for individual/user testing (#927) 2021-02-12 10:43:05 -06:00
Jim 7cade6f8aa just a few typos. (#840) 2020-12-23 16:21:35 -05:00
Jeff Malnick 4550088205 docs: changelog process to contributing doc (#773) 2020-11-04 15:43:30 -08:00
Jeff Malnick e77efb4e9e docs: add contributing.md (#714) 2020-10-16 09:51:50 -07:00