Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
masha1997 committed Mar 4, 2025
1 parent d870b9a commit e0f459a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions provider/resource_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ func TestAccResourceServiceTagsLifecycle(t *testing.T) {
}

func testCheckServiceDependsOnMatch(t *testing.T, child_name string, _ /* expected_overloaded_urgency */ ...int) resource.TestCheckFunc {
return func(s *terraform.State) error {
leafResource, ok := s.RootModule().Resources[child_name]
return func(s *terraform.State) error {'' leafResource, ok := s.RootModule().Resources[child_name]

Check failure on line 211 in provider/resource_service_test.go

View workflow job for this annotation

GitHub Actions / test / tests (1.9.*)

illegal rune literal

Check failure on line 211 in provider/resource_service_test.go

View workflow job for this annotation

GitHub Actions / test / tests (1.9.*)

illegal rune literal
if !ok {
return fmt.Errorf("Not found: itsi_service.service_create_leaf")
}
Expand All @@ -224,7 +223,7 @@ func testCheckServiceDependsOnMatch(t *testing.T, child_name string, _ /* expect
return fmt.Errorf("Kpi depends on length not found")
}
for i := range kpiLength {
parentKPIID := parentResource.Primary.Attributes["service_depends_on.0.kpis."+strconv.Itoa(i)]
parentKPIID := parentResource.Primary.Attributes["service_depends_on."+strconv.Itoa(i)+".kpis.0"]
if leafKPIID == parentKPIID {
t.Logf("PASSED: Leaf shkpi_id %s, Parent's dependent kpis %s", leafKPIID, parentResource.Primary.Attributes["service_depends_on.0.kpis"])
// if len(expected_overloaded_urgency) > 0 {
Expand Down

0 comments on commit e0f459a

Please # to comment.