Merge branch 'remove_instance_uuid' into 'master'
remove instanceUuid See merge request integration-system/isp-config-service!5
This commit is contained in:
commit
2af27ddb68
8 files changed
+8
-11
No files matched your search
@@ -1,3 +1,5 @@
|
||||
### v2.4.8
|
||||
* do not check for instance_uuid anymore
|
||||
### v2.4.7
|
||||
* updated dependencies
|
||||
### v2.4.6
|
||||
|
||||
@@ -114,8 +114,6 @@ func getURL(address string) string {
|
||||
|
||||
params := url.Values{}
|
||||
params.Add(GETParam, "true")
|
||||
// TODO выпилить instance_uuid ?
|
||||
params.Add(utils.ModuleNameGetParamKey, cfg.ModuleName)
|
||||
params.Add(utils.InstanceUuidGetParamKey, "9d89354b-c728-4b48-b002-a7d3b229f151")
|
||||
return fmt.Sprintf("ws://%s:%d/isp-etp/?%s", addr.IP.String(), addr.Port, params.Encode())
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
moduleName: config
|
||||
instanceUuid: bf482806-0c3d-4e0d-b9d4-12c037b12d70
|
||||
|
||||
registry:
|
||||
host: nexus.msp.mobi
|
||||
|
||||
@@ -303,7 +303,7 @@ func testClusterReady(a *assert.Assertions, except int) bool {
|
||||
configAddr := configsGrpcAddrs[j]
|
||||
client := newGrpcClient(a, configAddr)
|
||||
if client == nil {
|
||||
a.Fail(fmt.Sprintf("unable to connect to %d config", j))
|
||||
a.Failf("", "unable to connect to %d config", j)
|
||||
return false
|
||||
}
|
||||
clients = append(clients, client)
|
||||
@@ -503,8 +503,7 @@ func newMockModule(a *assert.Assertions, configAddr structure.AddressConfigurati
|
||||
Port: configAddr.Port,
|
||||
Secure: false,
|
||||
UrlParams: map[string]string{
|
||||
"module_name": mockModuleName,
|
||||
"instance_uuid": "ec183598-746a-425f-b5e5-27b7fa8bc6af",
|
||||
"module_name": mockModuleName,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ require (
|
||||
github.com/integration-system/bellows v1.0.1
|
||||
github.com/integration-system/isp-etp-go/v2 v2.1.3
|
||||
github.com/integration-system/isp-lib-test v1.6.4
|
||||
github.com/integration-system/isp-lib/v2 v2.8.5
|
||||
github.com/integration-system/isp-lib/v2 v2.8.6
|
||||
github.com/integration-system/isp-log v1.1.8
|
||||
github.com/integration-system/net-mux v1.0.1
|
||||
github.com/json-iterator/go v1.1.11
|
||||
|
||||
@@ -338,8 +338,8 @@ github.com/integration-system/isp-lib-test v1.6.4/go.mod h1:k8DiXG/Bx3k8cft0QI/+
|
||||
github.com/integration-system/isp-lib/v2 v2.4.0/go.mod h1:hxyzKBD7eIf6Hm4x6zRsLW5p8m/aFeqeezKMFYBAtho=
|
||||
github.com/integration-system/isp-lib/v2 v2.6.2/go.mod h1:ZGW7qQsCuELBHRBnSSDSEonPx+FxAfHiAfwsGQZzVO4=
|
||||
github.com/integration-system/isp-lib/v2 v2.8.4/go.mod h1:bKFyatmLqEkaQWJjww0R1Dz+cRn8T7YSaf4VrROgeTw=
|
||||
github.com/integration-system/isp-lib/v2 v2.8.5 h1:HKtkNTjkqmVPV9cf26rq0vcqHM182ex5ERh/tYwIZ8o=
|
||||
github.com/integration-system/isp-lib/v2 v2.8.5/go.mod h1:ePZcmFjJHUSiivvLxI03BB3Aux0v5rf5wmIYQ8qjOhQ=
|
||||
github.com/integration-system/isp-lib/v2 v2.8.6 h1:BCEQ9pQc1wa1BHXrM9fIPVEhQN0T68ffkYU5Zl5Eg7I=
|
||||
github.com/integration-system/isp-lib/v2 v2.8.6/go.mod h1:ePZcmFjJHUSiivvLxI03BB3Aux0v5rf5wmIYQ8qjOhQ=
|
||||
github.com/integration-system/isp-log v1.1.2/go.mod h1:VVMr3cHW+RuFurPUSeVz71KUnOGQxogxO5atV9N8ISs=
|
||||
github.com/integration-system/isp-log v1.1.5/go.mod h1:VVMr3cHW+RuFurPUSeVz71KUnOGQxogxO5atV9N8ISs=
|
||||
github.com/integration-system/isp-log v1.1.6/go.mod h1:TpUZ/Tx84sRipAT/YXZ8V7Z21C4iZ8o3wXQs3Cee0Pk=
|
||||
|
||||
@@ -17,7 +17,6 @@ func IsConfigClusterNode(conn etp.Conn) bool {
|
||||
}
|
||||
|
||||
func Parameters(conn etp.Conn) (moduleName string, err error) {
|
||||
// TODO remove instanceUUID from isp-lib
|
||||
_, moduleName, err = utils.ParseParameters(conn.URL().RawQuery)
|
||||
return moduleName, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user