tapis-project / authenticator

BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

feat: support API_NAME via .env file #63

Closed wesleyboar closed 9 months ago

wesleyboar commented 9 months ago

Overview

Do not force operator to remember export API_NAME=authenticator command.

Read a .env file if it is available.

Changed

Testing

Verify Makefile supports export and .env for API_NAME, in that order.

1. Clone/Open repo. 2. Do **not** run `export API_NAME=authenticator` command. 3. Run `make init_dbs`. 4. Verify **error** occurs (indirectly) because of missing API_NAME. 5. Create an `.env` file with content `export API_NAME=bob`. 6. Run `make init_dbs`. 7. Verify output uses `API_NAME` of **"bob"**. 8. Run `export API_NAME=authenticator`. 9. Run `make init_dbs`. 10. Verify output uses `API_NAME` of **"authenticator"**.

Notes

I read that the "make system is generic and used by multiple Tapis services".

Where is the source of truth for this generic Makefile?