Skip to content

Commit

Permalink
Update instructure for running acceptance locally
Browse files Browse the repository at this point in the history
  • Loading branch information
weilueluo authored Aug 15, 2024
1 parent 43ae3e2 commit 3e599d3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,18 @@ To release a new version of the Terraform CDO Provider manually, perform the fol
## Gitleaks License
The Gitleaks License is free, and stored in the `GITLEAKS_LICENSE` secret. In addition, it is saved to [Conjur](https://secrets.cisco.com/conjur/nonprod/eng/cdo/gitleaks-license). Speak to Jay, Doron, Siddhu, or Pedro to access it.
## Running acceptance test locally against Github environment
1. Create a file called `./provider/.github-action.local.env` locally
2. File should contain the following:
```bash
ASA_RESOURCE_SDC_PASSWORD=<fill this>
IOS_RESOURCE_PASSWORD=<fill this>
DUO_ADMIN_PANEL_RESOURCE_INTEGRATION_KEY=<fill this>
DUO_ADMIN_PANEL_RESOURCE_SECRET_KEY=<fill this>
```
3. Login to the github environment in ci, the tenant name is `[email protected]`
4. Generate a api token
5. In the console, export it as environment variable, named `ACC_TEST_CISCO_CDO_API_TOKEN`
6. Run `cd ./provider`
7. Run `make testacc`

0 comments on commit 3e599d3

Please sign in to comment.