This doc explains the development workflow so you can get started contributing to the Okta Terraform Provider!
First you will need to setup your GitHub account and create a fork:
Once you have those, you can iterate on the provider:
When you're ready, you can create a PR!
To check out this repository:
- Create your own fork of this repo
- Clone it to your machine:
mkdir -p ${GOPATH}/src/github.com/articulate
cd ${GOPATH}/src/github.com/articulate
git clone [email protected]:${YOUR_GITHUB_USERNAME}/terraform-provider-okta.git
cd terraform-provider-okta
git remote add upstream [email protected]:articulate/terraform-provider-okta.git
git remote set-url --push upstream no_push
Adding the upstream
remote sets you up nicely for regularly syncing your
fork.
The provider has both unit tests and acceptance tests.
To run unit tests simply run
make test
Acceptance tests are run against real infrastructure and thus require credentials for an Okta org. Be sure not to run this anywhere but a test org. Start by copying .env.sample
and installing a version of dotenv
cli or simply export these values into your environment.
cp .env.sample .env
dotenv make testacc
# Or run a particular test
TEST_FILTER=TestAccDataSourceAppSaml dotenv make testacc
When you have changes you would like to propose to kritis, you will need to:
- Ensure the commit message(s) describe what issue you are fixing and how you are fixing it (include references to issue numbers if appropriate)
- Create a pull request
- Post a screenshot of the passing ACC tests. If you do not have access to an Okta org, you can request a maintainer run the ACC tests. These tests make ALOT of API calls so free dev accounts, the configured number of retries, and the backoff duration may not be enough to get through all of the tests.
Each PR must be reviewed by a maintainer. In order for a PR to merge you must post a screenshot of the ACC tests passing. We do not run these via Travis due to Okta rate limiting. It gets to be untenable. Maintainers have access to Okta orgs they can run this against so if you are an outside contributor feel free to request ACC tests be run.