Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
VoigtS committed Dec 17, 2024
1 parent 705258c commit 556376e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion internal/collector/scrape_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]"))
Expand Down
2 changes: 1 addition & 1 deletion internal/reports/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/reports/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/reports/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 556376e

Please sign in to comment.