Skip to content

Commit

Permalink
V0.0.9 (#48)
Browse files Browse the repository at this point in the history
* closes:
- issue #29 
- issue #30 
- issue #32 
- issue #33 
- issue #35 
- issue #40 
- issue #45 
- issue #47 

* Bump goreleaser/goreleaser-action from 4.1.0 to 4.2.0

Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](goreleaser/goreleaser-action@v4.1.0...v4.2.0)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* closes issue #30 and issue #32

* Bump github.com/golangci/golangci-lint from 1.50.1 to 1.51.1

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.50.1 to 1.51.1.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](golangci/golangci-lint@v1.50.1...v1.51.1)

---
updated-dependencies:
- dependency-name: github.com/golangci/golangci-lint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* stashing work before tests

* closes:
- issue 32
- issue 33
- issue 40
- issue 45
- issue 47

* changelog for issue 29

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
samir-gandhi and dependabot[bot] authored Feb 7, 2023
1 parent 1a2d766 commit c53464e
Show file tree
Hide file tree
Showing 42 changed files with 903 additions and 265 deletions.
5 changes: 5 additions & 0 deletions .changelog/29.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
``````markdown
```release-note:enhancement
datasource_davinci_connection: Added filter to get connection by name
```
``````
7 changes: 7 additions & 0 deletions .changelog/30.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
``````markdown
```release-note:bug
sdk: corrected ordering of wait for bootstrap to ensure 5s sleep
resource_flow_test: added test to validate wait for bootstrap
acctest: added models for new resource_flow_test
```
``````
5 changes: 5 additions & 0 deletions .changelog/32.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
``````markdown
```release-note:bug
go-client: updated client to v0.0.40 for removed omitempty on node data properties
```
``````
8 changes: 8 additions & 0 deletions .changelog/33.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
``````markdown
```release-note:enhancement
resource_davinci_flow: updated connection and subflow dependency fields to `id` and `name`
resource_davinci_connection: updated connection_id and connection_name to `id` and `name`
datasource_davinci_connection: updated connection_id and connection_name to `id` and `name`
datasource_davinci_connections: updated connection_id and connection_name to `id` and `name`
```
``````
6 changes: 6 additions & 0 deletions .changelog/40.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
``````markdown
```release-note:bug
resource_davinci_application.go: Marked connection property value field at "Sensitive"
data_source_davinci_application.go: Marked connection property value field at "Sensitive"
```
``````
5 changes: 5 additions & 0 deletions .changelog/45.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
``````markdown
```release-note:bug
resource_davinci_connection.go: Marked connection property value field at "Sensitive"
```
``````
5 changes: 5 additions & 0 deletions .changelog/47.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
``````markdown
```release-note:enhancement
*_test.go: Updated all tests to use minimal role strategy for main admin user.
```
``````
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
passphrase: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4.1.0
uses: goreleaser/goreleaser-action@v4.2.0
with:
version: latest
args: release --rm-dist
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Read-Only:

Read-Only:

- `flow_id` (String)
- `id` (String)
- `success_nodes` (List of String)
- `version_id` (Number)
- `weight` (Number)
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Read-Only:

Read-Only:

- `flow_id` (String)
- `id` (String)
- `success_nodes` (List of String)
- `version_id` (Number)
- `weight` (Number)
Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ description: |-

### Required

- `connection_id` (String) ID of the connection to retrieve.
- `environment_id` (String) PingOne environment id

### Optional

- `id` (String) ID of the connection to retrieve. Either id or name must be specified.
- `name` (String) Name of the connection to retrieve. Either id or name must be specified.

### Read-Only

- `connector_id` (String)
- `created_date` (Number)
- `customer_id` (String)
- `id` (String) The ID of this resource.
- `name` (String)
- `properties` (Set of Object) Connection configuration (see [below for nested schema](#nestedatt--properties))

<a id="nestedatt--properties"></a>
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ output "davinci_connection" {
Read-Only:

- `company_id` (String)
- `connection_id` (String)
- `connector_id` (String)
- `created_date` (Number)
- `customer_id` (String)
- `id` (String)
- `name` (String)
- `properties` (Set of Object) (see [below for nested schema](#nestedobjatt--connections--properties))

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ resource "davinci_flow" "mainflow" {
// Dependent subflows are defined in subflows blocks.
// These should always point to managed subflows
subflows {
subflow_id = resource.davinci_flow.subflow.flow_id
subflow_name = resource.davinci_flow.subflow.flow_name
id = resource.davinci_flow.subflow.id
name = resource.davinci_flow.subflow.name
}
// This depends_on relieves the client from multiple initial authentication attempts
Expand Down
7 changes: 5 additions & 2 deletions docs/resources/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "davinci_application" "use_default_flow" {
name = "PingOne - Sign On and Password Reset"
status = "enabled"
policy_flows {
flow_id = "abc123"
id = "abc123"
version_id = -1
weight = 100
}
Expand Down Expand Up @@ -142,11 +142,14 @@ Read-Only:

Optional:

- `flow_id` (String)
- `success_nodes` (List of String)
- `version_id` (Number)
- `weight` (Number)

Read-Only:

- `id` (String) The ID of this resource.



<a id="nestedblock--user_portal"></a>
Expand Down
9 changes: 4 additions & 5 deletions docs/resources/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "davinci_connection" "crowd_strike" {
}
output "cowd_strike_id" {
value = resource.davinci_connection.crowd_strike.connection_id
value = resource.davinci_connection.crowd_strike.id
}
```

Expand All @@ -45,26 +45,25 @@ output "cowd_strike_id" {

- `connector_id` (String) DaVinci internal connector type. Not found in UI. Look in API read response (e.g Http Connector is 'httpConnector'
- `environment_id` (String) PingOne environment id
- `name` (String) Name of the connection displayed in UI. Also used for mapping connection_id on flows between environments.
- `name` (String) Name of the connection displayed in UI. Also used for mapping id on flows between environments.

### Optional

- `properties` (Block Set) Connection properties. These are specific to the connector type. Get connection properties from connection API read response. (see [below for nested schema](#nestedblock--properties))

### Read-Only

- `connection_id` (String) DaVinci generated identifier for the connection.
- `created_date` (Number)
- `customer_id` (String)
- `id` (String) The ID of this resource.
- `id` (String) DaVinci generated identifier for the connection.

<a id="nestedblock--properties"></a>
### Nested Schema for `properties`

Required:

- `name` (String) Name of the property.
- `value` (String) Value of the property as string. If the property is an array, use a comma separated string.
- `value` (String, Sensitive) Value of the property as string. If the property is an array, use a comma separated string.

Optional:

Expand Down
27 changes: 13 additions & 14 deletions docs/resources/flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ resource "davinci_flow" "mainflow" {
// Dependent subflows are defined in subflows blocks.
// These should always point to managed subflows
subflows {
subflow_id = resource.davinci_flow.subflow.flow_id
subflow_name = resource.davinci_flow.subflow.flow_name
id = resource.davinci_flow.subflow.id
name = resource.davinci_flow.subflow.name
}
// Dependent connections are defined in conections blocks.
// It is best practice to define all connections referenced the flow_json. This prevents a mismatch between the flow_json and the connections
// This sample references a managed connection
connections {
connection_id = davinci_connection.subflow.id
id = davinci_connection.subflow.id
connection_name = davinci_connection.subflow.name
}
// This sample uses a bootstrapped connection
Expand All @@ -58,11 +58,11 @@ resource "davinci_flow" "subflow" {
flow_json = file("subflow.json")
deploy = true
connections {
connection_id = "867ed4363b2bc21c860085ad2baa817d"
id = "867ed4363b2bc21c860085ad2baa817d"
connection_name = "Http"
}
connections {
connection_id = davinci_connection.subflow.id
id = davinci_connection.subflow.id
connection_name = davinci_connection.subflow.name
}
}
Expand All @@ -78,33 +78,32 @@ resource "davinci_flow" "subflow" {

### Optional

- `connections` (Block Set) Connections this flow depends on. flow_json connectionId will be updated to connection_id matching connection_name . (see [below for nested schema](#nestedblock--connections))
- `connections` (Block Set) Connections this flow depends on. flow_json connectionId will be updated to id matching name . (see [below for nested schema](#nestedblock--connections))
- `deploy` (Boolean) Deploy Flow after import. Flows must be deployed to be used. Defaults to `true`.
- `subflows` (Block Set) Child flows of this resource. Required to keep mapping if flow_json contains subflows. flow_json subflowId will be updated to subflow_id matching subflow_name. Note, subflow will automatically point to latest version (-1). (see [below for nested schema](#nestedblock--subflows))
- `subflows` (Block Set) Child flows of this resource. Required to keep mapping if flow_json contains subflows. flow_json subflowId will be updated to id matching name. Note, subflow will automatically point to latest version (-1). (see [below for nested schema](#nestedblock--subflows))
- `variables` (Block Set) Dependent variables of this flow. Required to ensure mapping if flow_json contains variables. flow_json variableId will be updated to variable_id by matching variable_name. (see [below for nested schema](#nestedblock--variables))

### Read-Only

- `flow_id` (String) DaVinci generated identifier after import.
- `flow_name` (String) Computed Flow Name after import. Will match 'name' in flow_json
- `id` (String) The ID of this resource.
- `id` (String) DaVinci generated identifier after import.
- `name` (String) Computed Flow Name after import. Will match 'name' in flow_json

<a id="nestedblock--connections"></a>
### Nested Schema for `connections`

Required:

- `connection_id` (String) Connection ID that will be used when flow is imported.
- `connection_name` (String) Connection Name to match when updating flow_json connectionId.
- `id` (String) Connection ID that will be used when flow is imported.
- `name` (String) Connection Name to match when updating flow_json connectionId.


<a id="nestedblock--subflows"></a>
### Nested Schema for `subflows`

Required:

- `subflow_id` (String) Subflow Flow ID that will be used when flow is imported.
- `subflow_name` (String) Subflow Name to match when updating flow_json subflowId.
- `id` (String) Subflow Flow ID that will be used when flow is imported.
- `name` (String) Subflow Name to match when updating flow_json subflowId.


<a id="nestedblock--variables"></a>
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resource "davinci_variable" "my_global_var" {
- `description` (String) Description of variable
- `max` (Number) Defaults to `2000`.
- `min` (Number) Defaults to `0`.
- `mutable` (Boolean)
- `mutable` (Boolean) Defaults to `true`.
- `value` (String, Sensitive) Value as string, type will be inferred

### Read-Only
Expand Down
4 changes: 2 additions & 2 deletions examples/provider/provider_sso.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ resource "davinci_flow" "mainflow" {
// Dependent subflows are defined in subflows blocks.
// These should always point to managed subflows
subflows {
subflow_id = resource.davinci_flow.subflow.flow_id
subflow_name = resource.davinci_flow.subflow.flow_name
id = resource.davinci_flow.subflow.id
name = resource.davinci_flow.subflow.name
}

// This depends_on relieves the client from multiple initial authentication attempts
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/davinci_application/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource "davinci_application" "use_default_flow" {
name = "PingOne - Sign On and Password Reset"
status = "enabled"
policy_flows {
flow_id = "abc123"
id = "abc123"
version_id = -1
weight = 100
}
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/davinci_connection/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ resource "davinci_connection" "crowd_strike" {
}

output "cowd_strike_id" {
value = resource.davinci_connection.crowd_strike.connection_id
value = resource.davinci_connection.crowd_strike.id
}
10 changes: 5 additions & 5 deletions examples/resources/davinci_flow/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ resource "davinci_flow" "mainflow" {
// Dependent subflows are defined in subflows blocks.
// These should always point to managed subflows
subflows {
subflow_id = resource.davinci_flow.subflow.flow_id
subflow_name = resource.davinci_flow.subflow.flow_name
id = resource.davinci_flow.subflow.id
name = resource.davinci_flow.subflow.name
}
// Dependent connections are defined in conections blocks.
// It is best practice to define all connections referenced the flow_json. This prevents a mismatch between the flow_json and the connections

// This sample references a managed connection
connections {
connection_id = davinci_connection.subflow.id
id = davinci_connection.subflow.id
connection_name = davinci_connection.subflow.name
}
// This sample uses a bootstrapped connection
Expand All @@ -43,11 +43,11 @@ resource "davinci_flow" "subflow" {
flow_json = file("subflow.json")
deploy = true
connections {
connection_id = "867ed4363b2bc21c860085ad2baa817d"
id = "867ed4363b2bc21c860085ad2baa817d"
connection_name = "Http"
}
connections {
connection_id = davinci_connection.subflow.id
id = davinci_connection.subflow.id
connection_name = davinci_connection.subflow.name
}
}
Loading

0 comments on commit c53464e

Please sign in to comment.