Skip to content

Commit 04176c9

Browse files
committed
Package-renamings;
1 parent 229b0a3 commit 04176c9

File tree

11 files changed

+8
-8
lines changed

11 files changed

+8
-8
lines changed

api/broker/binding_request_parser/binding-request-parser_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
// br "code.cloudfoundry.org/app-autoscaler/src/autoscaler/api/broker/binding_request_parser"
1010
// clp "code.cloudfoundry.org/app-autoscaler/src/autoscaler/api/broker/binding_request_parser/clean_parser"
1111
// cp "code.cloudfoundry.org/app-autoscaler/src/autoscaler/api/broker/binding_request_parser/combined_parser"
12-
lp "code.cloudfoundry.org/app-autoscaler/src/autoscaler/api/broker/binding_request_parser/legacy_parser"
12+
lp "code.cloudfoundry.org/app-autoscaler/src/autoscaler/api/broker/binding_request_parser/legacy"
1313
"code.cloudfoundry.org/app-autoscaler/src/autoscaler/models"
1414
)
1515

@@ -110,7 +110,7 @@ var _ = Describe("BindingRequestParsers", func() {
110110
err error
111111
)
112112
var _ = BeforeEach(func() {
113-
schemaFilePathAbs, err = filepath.Abs("./legacy_parser/schema.json")
113+
schemaFilePathAbs, err = filepath.Abs("./legacy/schema.json")
114114
Expect(err).NotTo(HaveOccurred())
115115
legacyParser, err = lp.New("file://" + schemaFilePathAbs)
116116
Expect(err).NotTo(HaveOccurred())

api/broker/binding_request_parser/legacy_parser/parser.go renamed to api/broker/binding_request_parser/legacy/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package legacy_parser
1+
package legacy
22

33
import (
44
"encoding/json"

api/broker/binding_request_parser/legacy_parser/schema.go renamed to api/broker/binding_request_parser/legacy/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package legacy_parser
1+
package legacy
22

33

44
type policyAndBindingCfg struct {

api/broker/binding_request_parser/legacy_parser/schema.json renamed to api/broker/binding_request_parser/legacy/schema.json

File renamed without changes.

api/broker/binding_request_parser/meta.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Unification of different schemas for scaling-policies for Autoscaler",
55

66
"oneOf": [
7-
{"$ref": "./json-schema/v0.1/meta.schema.json"},
8-
{"$ref": "./legacy_parser/schema.json"}
7+
{"$ref": "./v0.1_parser/meta.schema.json"},
8+
{"$ref": "./legacy/schema.json"}
99
]
1010
}

api/broker/binding_request_parser/json-schema/v0.1/meta.schema.json renamed to api/broker/binding_request_parser/v0_1/meta.schema.json

File renamed without changes.

api/broker/binding_request_parser/clean_parser/parser.go renamed to api/broker/binding_request_parser/v0_1/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package clean_parser
1+
package v0_1
22

33
// import (
44
// "encoding/json"

api/broker/binding_request_parser/json-schema/v0.1/policy-configuration.schema.json renamed to api/broker/binding_request_parser/v0_1/policy-configuration.schema.json

File renamed without changes.

api/broker/binding_request_parser/json-schema/v0.1/scaling-policy.schema.json renamed to api/broker/binding_request_parser/v0_1/scaling-policy.schema.json

File renamed without changes.

api/broker/binding_request_parser/clean_parser/schema.go renamed to api/broker/binding_request_parser/v0_1/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package clean_parser
1+
package v0_1
22

33
type parameters struct {
44
Configuration *bindingCfg `json:"configuration"`

0 commit comments

Comments
 (0)