diff --git a/internal/api/api_test.go b/internal/api/api_test.go index f9a27f4f..b1571517 100644 --- a/internal/api/api_test.go +++ b/internal/api/api_test.go @@ -1251,8 +1251,8 @@ func (j JSONThatUnmarshalsInto) AssertResponseBody(t *testing.T, requestInfo str return true } -func Test_SeparatedToplogyOperations(t *testing.T) { - // This test structure ensures that the consumable limes APIs do not break with the introduction (or further changes) of the az separated toplogy. +func Test_SeparatedTopologyOperations(t *testing.T) { + // This test structure ensures that the consumable limes APIs do not break with the introduction (or further changes) of the az separated topology. s := setupTest(t, "fixtures/start-data-az-separated.sql") assert.HTTPRequest{ Method: "GET", diff --git a/internal/collector/scrape_test.go b/internal/collector/scrape_test.go index 10f9a7b3..9ecc7a23 100644 --- a/internal/collector/scrape_test.go +++ b/internal/collector/scrape_test.go @@ -750,7 +750,7 @@ func Test_TopologyScrapes(t *testing.T) { mustFailT(t, job.ProcessOne(s.Ctx, withLabel), errors.New("during resource scrape of project germany/berlin: service: unittest, resource: capacity: scrape with topology type: az-separated returned AZs: [unknown]\nservice: unittest, resource: things: scrape with topology type: az-separated returned AZs: [unknown]")) s.Clock.StepBy(scrapeInterval) - // negative: empty toplogy should be treated as FlatResourceTopology + // negative: empty topology should be treated as FlatResourceTopology plugin.LiquidServiceInfo.Resources = map[liquid.ResourceName]liquid.ResourceInfo{"things": {Topology: liquid.FlatResourceTopology}} plugin.ReportedAZs = map[liquid.AvailabilityZone]struct{}{"az-one": {}} mustFailT(t, job.ProcessOne(s.Ctx, withLabel), errors.New("during resource scrape of project germany/dresden: service: unittest, resource: things: scrape with topology type: flat returned AZs: [az-one]")) diff --git a/internal/reports/cluster.go b/internal/reports/cluster.go index 5eef5dc0..70ec3b88 100644 --- a/internal/reports/cluster.go +++ b/internal/reports/cluster.go @@ -372,7 +372,7 @@ func GetClusterResources(cluster *core.Cluster, now time.Time, dbi db.Interface, // zero and there are other AZs if len(resource.PerAZ) >= 2 { capaInAny := resource.PerAZ[limes.AvailabilityZoneAny] - // AZSeparatedToplogy does not provide the "any" AZ. + // AZSeparatedTopology does not provide the "any" AZ. if capaInAny == nil { continue } diff --git a/internal/reports/domain.go b/internal/reports/domain.go index 9e2c5fec..e061434d 100644 --- a/internal/reports/domain.go +++ b/internal/reports/domain.go @@ -317,7 +317,7 @@ func GetDomains(cluster *core.Cluster, domainID *db.DomainID, now time.Time, dbi for _, resReport := range srvReport.Resources { if len(resReport.PerAZ) >= 2 { reportInAny := resReport.PerAZ[limes.AvailabilityZoneAny] - // AZSeparatedToplogy does not provide the "any" AZ. + // AZSeparatedTopology does not provide the "any" AZ. if reportInAny == nil { continue } diff --git a/internal/reports/project.go b/internal/reports/project.go index a01dc1bd..e3e6b07a 100644 --- a/internal/reports/project.go +++ b/internal/reports/project.go @@ -401,7 +401,7 @@ func finalizeProjectResourceReport(projectReport *limesresources.ProjectReport, for _, resReport := range srvReport.Resources { if len(resReport.PerAZ) >= 2 { reportInAny := resReport.PerAZ[limes.AvailabilityZoneAny] - // AZSeparatedToplogy does not provide the "any" AZ. + // AZSeparatedTopology does not provide the "any" AZ. if reportInAny == nil { continue }