Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INVS-1146: Inventory Entity Group enhancements #495

Merged
merged 4 commits into from
Sep 19, 2023

Conversation

pmontiel-sumo
Copy link
Collaborator

@pmontiel-sumo pmontiel-sumo commented Mar 9, 2023

Add new fields to support enhanced features.
Deprecate group field in favor of inventory_key, inventory_value

To be merged once enhanced functionality is released in production.

@pmontiel-sumo
Copy link
Collaborator Author

pmontiel-sumo commented Mar 9, 2023

-Test matrix expect to fail in production till enhanced functionality is released to production.

-Test succeeded pointing to stag:

GOROOT=/usr/local/opt/go/libexec #gosetup
GOPATH=/Users/pmontiel.ctr/go #gosetup
/usr/local/opt/go/libexec/bin/go test -c -o /private/var/folders/fp/79dmn6js7vvfdr18tlhmqk9r0000gp/T/GoLand/___TestAccSumologicCSEInventoryEntityGroupConfiguration_createAndUpdate_in_github_com_SumoLogic_terraform_provider_sumologic_sumologic.test github.com/SumoLogic/terraform-provider-sumologic/sumologic #gosetup
/usr/local/opt/go/libexec/bin/go tool test2json -t /private/var/folders/fp/79dmn6js7vvfdr18tlhmqk9r0000gp/T/GoLand/___TestAccSumologicCSEInventoryEntityGroupConfiguration_createAndUpdate_in_github_com_SumoLogic_terraform_provider_sumologic_sumologic.test -test.v -test.paniconexit0 -test.run ^\QTestAccSumologicCSEInventoryEntityGroupConfiguration_createAndUpdate\E$
2023/03/08 20:31:54 Sumo Logic Terraform Provider Version=
=== RUN   TestAccSumologicCSEInventoryEntityGroupConfiguration_createAndUpdate
2023/03/08 20:31:54 [DEBUG] Test: Executing step 0
2023/03/08 20:31:54 [DEBUG] provider has no plugin.Client
2023/03/08 20:31:54 [INFO] terraform: building graph: GraphTypeValidate
2023/03/08 20:31:54 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:31:54 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeValidatableResource) needs provider.sumologic
2023/03/08 20:31:54 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:54 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:31:54 [DEBUG] Starting graph walk: walkValidate
2023/03/08 20:31:54 [DEBUG] provider has no plugin.Client
2023/03/08 20:31:54 [INFO] terraform: building graph: GraphTypeRefresh
2023/03/08 20:31:54 [DEBUG] Starting graph walk: walkRefresh
2023/03/08 20:31:54 [DEBUG] New state was assigned lineage "9a98a010-8fd7-c690-eae7-edc66ab0ef53"
2023/03/08 20:31:54 [INFO] terraform: building graph: GraphTypePlan
2023/03/08 20:31:54 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:31:54 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodePlannableResource) needs provider.sumologic
2023/03/08 20:31:54 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:54 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:31:54 [DEBUG] Starting graph walk: walkPlan
2023/03/08 20:31:54 [DEBUG] Resource instance state not found for node "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration", instance sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:31:54 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:54 [WARN] Provider "sumologic" produced an invalid plan for sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .dynamic_tags: planned value cty.False does not match config value cty.NullVal(cty.Bool)
2023/03/08 20:31:54 [DEBUG] provider has no plugin.Client
2023/03/08 20:31:54 [WARN] Test: Step plan: DIFF:

CREATE: sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
  criticality:      "" => "HIGH"
  description:      "" => "Test description"
  dynamic_tags:     "" => "false"
  id:               "" => "<computed>"
  inventory_key:    "" => "groups"
  inventory_source: "" => "Active Directory"
  inventory_type:   "" => "computer"
  inventory_value:  "" => "red"
  name:             "" => "Entity Group Configuration Tf test"
  suppressed:       "" => "false"
  tags.#:           "" => "1"
  tags.0:           "" => "foo"



STATE:

<no state>
2023/03/08 20:31:54 [INFO] terraform: building graph: GraphTypeApply
2023/03/08 20:31:54 [DEBUG] Resource state not found for node "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration", instance sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:31:54 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)
2023/03/08 20:31:54 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)" (*terraform.NodeApplyableResource) needs provider.sumologic
2023/03/08 20:31:54 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeApplyableResourceInstance) needs provider.sumologic
2023/03/08 20:31:54 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)" references: []
2023/03/08 20:31:54 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:54 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:31:54 [DEBUG] Starting graph walk: walkApply
2023/03/08 20:31:54 [WARN] Provider "sumologic" produced an invalid plan for sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .dynamic_tags: planned value cty.False does not match config value cty.NullVal(cty.Bool)
2023/03/08 20:31:54 [DEBUG] sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration: applying the planned Create change
2023/03/08 20:31:57 [DEBUG] Request: [Method=POST] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/inventory] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:31:57 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:31:57 [WARN] Provider "sumologic" produced an unexpected new value for sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .tag_schema: was null, but now cty.StringVal("")
      - .group: was null, but now cty.StringVal("")
2023/03/08 20:31:57 [DEBUG] provider has no plugin.Client
2023/03/08 20:31:57 [DEBUG] New state was assigned lineage "1219c147-88fe-bf03-5185-f5e03499d553"
2023/03/08 20:31:58 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:31:58 [INFO] terraform: building graph: GraphTypePlan
2023/03/08 20:31:58 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:31:58 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodePlannableResource) needs provider.sumologic
2023/03/08 20:31:58 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:58 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:31:58 [DEBUG] Starting graph walk: walkPlan
2023/03/08 20:31:58 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:58 [DEBUG] provider has no plugin.Client
2023/03/08 20:31:58 [INFO] terraform: building graph: GraphTypeRefresh
2023/03/08 20:31:58 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:31:58 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeRefreshableManagedResource) needs provider.sumologic
2023/03/08 20:31:58 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:58 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:31:58 [DEBUG] Starting graph walk: walkRefresh
2023/03/08 20:31:58 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:59 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:31:59 [DEBUG] provider has no plugin.Client
2023/03/08 20:31:59 [DEBUG] New state was assigned lineage "2864edb0-0936-3abd-3599-51207ca313da"
2023/03/08 20:31:59 [INFO] terraform: building graph: GraphTypePlan
2023/03/08 20:31:59 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:31:59 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodePlannableResource) needs provider.sumologic
2023/03/08 20:31:59 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:59 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:31:59 [DEBUG] Starting graph walk: walkPlan
2023/03/08 20:31:59 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:59 [DEBUG] provider has no plugin.Client
2023/03/08 20:31:59 [DEBUG] Test: Executing step 1
2023/03/08 20:31:59 [DEBUG] provider has no plugin.Client
2023/03/08 20:31:59 [INFO] terraform: building graph: GraphTypeValidate
2023/03/08 20:31:59 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:31:59 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeValidatableResource) needs provider.sumologic
2023/03/08 20:31:59 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:59 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:31:59 [DEBUG] Starting graph walk: walkValidate
2023/03/08 20:31:59 [DEBUG] provider has no plugin.Client
2023/03/08 20:31:59 [INFO] terraform: building graph: GraphTypeRefresh
2023/03/08 20:31:59 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:31:59 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeRefreshableManagedResource) needs provider.sumologic
2023/03/08 20:31:59 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:31:59 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:31:59 [DEBUG] Starting graph walk: walkRefresh
2023/03/08 20:31:59 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:26 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:32:26 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:26 [DEBUG] New state was assigned lineage "c3d62fde-8cfb-97c3-c6be-fc224e30c79d"
2023/03/08 20:32:26 [INFO] terraform: building graph: GraphTypePlan
2023/03/08 20:32:26 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:32:26 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodePlannableResource) needs provider.sumologic
2023/03/08 20:32:26 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:26 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:26 [DEBUG] Starting graph walk: walkPlan
2023/03/08 20:32:26 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:26 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:26 [WARN] Test: Step plan: DIFF:

UPDATE: sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
  criticality:      "HIGH" => "HIGH"
  description:      "Test description" => "Test description"
  dynamic_tags:     "false" => "false"
  group:            "" => ""
  id:               "11e955c7-15e7-44da-9161-d05d01969bdf" => "11e955c7-15e7-44da-9161-d05d01969bdf"
  inventory_key:    "groups" => "normalizedHostname"
  inventory_source: "Active Directory" => "Active Directory"
  inventory_type:   "computer" => "computer"
  inventory_value:  "red" => "blue"
  name:             "Entity Group Configuration Tf test" => "Updated Entity Group Configuration"
  suppressed:       "false" => "true"
  tag_schema:       "" => ""
  tags.#:           "1" => "1"
  tags.0:           "foo" => "goo"



STATE:

sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration:
  ID = 11e955c7-15e7-44da-9161-d05d01969bdf
  provider = provider.sumologic
  criticality = HIGH
  description = Test description
  dynamic_tags = false
  group = 
  inventory_key = groups
  inventory_source = Active Directory
  inventory_type = computer
  inventory_value = red
  name = Entity Group Configuration Tf test
  suppressed = false
  tag_schema = 
  tags.# = 1
  tags.0 = foo
2023/03/08 20:32:26 [INFO] terraform: building graph: GraphTypeApply
2023/03/08 20:32:26 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)
2023/03/08 20:32:26 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)" (*terraform.NodeApplyableResource) needs provider.sumologic
2023/03/08 20:32:26 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeApplyableResourceInstance) needs provider.sumologic
2023/03/08 20:32:26 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)" references: []
2023/03/08 20:32:26 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:26 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:26 [DEBUG] Starting graph walk: walkApply
2023/03/08 20:32:26 [DEBUG] sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration: applying the planned Update change
2023/03/08 20:32:28 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/inventory/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=405 Method Not Allowed]
2023/03/08 20:32:29 [DEBUG] Request: [Method=PUT] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/inventory/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] If-Match:[] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:32:30 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:32:30 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:30 [DEBUG] New state was assigned lineage "3dd87a23-1cad-145e-ae74-4dce9995f5c1"
2023/03/08 20:32:31 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:32:31 [INFO] terraform: building graph: GraphTypePlan
2023/03/08 20:32:31 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:32:31 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodePlannableResource) needs provider.sumologic
2023/03/08 20:32:31 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:31 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:31 [DEBUG] Starting graph walk: walkPlan
2023/03/08 20:32:31 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:31 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:31 [INFO] terraform: building graph: GraphTypeRefresh
2023/03/08 20:32:31 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:32:31 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeRefreshableManagedResource) needs provider.sumologic
2023/03/08 20:32:31 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:31 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:31 [DEBUG] Starting graph walk: walkRefresh
2023/03/08 20:32:31 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:32 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:32:32 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:32 [DEBUG] New state was assigned lineage "d0f34350-0f0b-db7d-6e5c-d20247406127"
2023/03/08 20:32:32 [INFO] terraform: building graph: GraphTypePlan
2023/03/08 20:32:32 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:32:32 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodePlannableResource) needs provider.sumologic
2023/03/08 20:32:32 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:32 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:32 [DEBUG] Starting graph walk: walkPlan
2023/03/08 20:32:32 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:32 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:32 [WARN] Test: Executing destroy step
2023/03/08 20:32:32 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:32 [INFO] terraform: building graph: GraphTypeValidate
2023/03/08 20:32:32 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:32:32 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeValidatableResource) needs provider.sumologic
2023/03/08 20:32:32 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:32 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:32 [DEBUG] Starting graph walk: walkValidate
2023/03/08 20:32:32 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:32 [INFO] terraform: building graph: GraphTypeRefresh
2023/03/08 20:32:32 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:32:32 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeRefreshableManagedResource) needs provider.sumologic
2023/03/08 20:32:32 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:32 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:32 [DEBUG] Starting graph walk: walkRefresh
2023/03/08 20:32:32 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:35 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:32:35 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:35 [DEBUG] New state was assigned lineage "b09636a8-82a8-a0aa-2dff-8bb521298fba"
2023/03/08 20:32:35 [INFO] terraform: building graph: GraphTypePlanDestroy
2023/03/08 20:32:35 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:32:35 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodePlanDestroyableResourceInstance) needs provider.sumologic
2023/03/08 20:32:35 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:32:35 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeAbstractResourceInstance) needs provider.sumologic
2023/03/08 20:32:35 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.sumologic
2023/03/08 20:32:35 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:35 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (destroy)" references: []
2023/03/08 20:32:35 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:35 [DEBUG] Starting graph walk: walkPlanDestroy
2023/03/08 20:32:35 [WARN] Test: Step plan: DIFF:

DESTROY: sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
  criticality:      "HIGH" => ""
  description:      "Test description" => ""
  dynamic_tags:     "false" => ""
  group:            "" => ""
  id:               "11e955c7-15e7-44da-9161-d05d01969bdf" => ""
  inventory_key:    "normalizedHostname" => ""
  inventory_source: "Active Directory" => ""
  inventory_type:   "computer" => ""
  inventory_value:  "blue" => ""
  name:             "Updated Entity Group Configuration" => ""
  suppressed:       "true" => ""
  tag_schema:       "" => ""
  tags.#:           "1" => ""
  tags.0:           "goo" => ""



STATE:

sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration:
  ID = 11e955c7-15e7-44da-9161-d05d01969bdf
  provider = provider.sumologic
  criticality = HIGH
  description = Test description
  dynamic_tags = false
  group = 
  inventory_key = normalizedHostname
  inventory_source = Active Directory
  inventory_type = computer
  inventory_value = blue
  name = Updated Entity Group Configuration
  suppressed = true
  tag_schema = 
  tags.# = 1
  tags.0 = goo
2023/03/08 20:32:35 [INFO] terraform: building graph: GraphTypeApply
2023/03/08 20:32:35 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)
2023/03/08 20:32:35 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.sumologic
2023/03/08 20:32:35 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)" (*terraform.NodeApplyableResource) needs provider.sumologic
2023/03/08 20:32:35 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:35 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)" references: []
2023/03/08 20:32:35 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (destroy)" references: []
2023/03/08 20:32:35 [DEBUG] adding implicit provider configuration provider.sumologic, implied first by sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration
2023/03/08 20:32:35 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" (*terraform.NodeAbstractResourceInstance) needs provider.sumologic
2023/03/08 20:32:35 [DEBUG] ProviderTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (destroy)" (*terraform.NodeDestroyResourceInstance) needs provider.sumologic
2023/03/08 20:32:35 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration" references: []
2023/03/08 20:32:35 [DEBUG] ReferenceTransformer: "sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (destroy)" references: []
2023/03/08 20:32:35 [DEBUG] ReferenceTransformer: "provider.sumologic" references: []
2023/03/08 20:32:35 DestroyEdgeTransformer: pruning unused resource node sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration (prepare state)
2023/03/08 20:32:35 [DEBUG] Starting graph walk: walkDestroy
2023/03/08 20:32:35 [DEBUG] sumologic_cse_inventory_entity_group_configuration.inventory_entity_group_configuration: applying the planned Delete change
2023/03/08 20:32:36 [DEBUG] Request: [Method=DELETE] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=200 OK]
2023/03/08 20:32:36 [DEBUG] provider has no plugin.Client
2023/03/08 20:32:36 [DEBUG] New state was assigned lineage "29cc540d-25f5-3909-64f9-4fa2a9872a0e"
2023/03/08 20:32:36 [DEBUG] Request: [Method=GET] [URL=https://stag-api.sumologic.net/api/sec/v1/entity-group-configurations/11e955c7-15e7-44da-9161-d05d01969bdf] [Headers=map[Authorization:[xxxxxxxxxxx] Content-Type:[application/json] User-Agent:[SumoLogicTerraformProvider/]]]. Response: [StatusCode=404 Not Found]
2023/03/08 20:32:36 [INFO] terraform: building graph: GraphTypePlanDestroy
2023/03/08 20:32:36 [DEBUG] Starting graph walk: walkPlanDestroy
2023/03/08 20:32:36 [INFO] terraform: building graph: GraphTypeRefresh
2023/03/08 20:32:36 [DEBUG] Starting graph walk: walkRefresh
2023/03/08 20:32:36 [DEBUG] New state was assigned lineage "520d1baa-df2e-4c35-0764-d6d992a5785e"
2023/03/08 20:32:36 [INFO] terraform: building graph: GraphTypePlanDestroy
2023/03/08 20:32:36 [DEBUG] Starting graph walk: walkPlanDestroy
--- PASS: TestAccSumologicCSEInventoryEntityGroupConfiguration_createAndUpdate (41.62s)
PASS

Process finished with the exit code 0

@josh-williams
Copy link
Contributor

LGTM once the actual feature is released

@sumovishal
Copy link
Collaborator

Test matrix expect to fail in production till enhanced functionality is released to production.

Please don't merge this PR until it is enabled in production.

@pmontiel-sumo
Copy link
Collaborator Author

Test matrix expect to fail in production till enhanced functionality is released to production.

Please don't merge this PR until it is enabled in production.

hi @sumovishal - yes, the plan is to merge once feature is enabled in prod ( planning to happen soon ), thanks!

@pmontiel-sumo pmontiel-sumo merged commit 7611847 into master Sep 19, 2023
3 checks passed
@pmontiel-sumo pmontiel-sumo deleted the INVS-1146_Entity_Group_Inventory_enhancements branch September 19, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants