Skip to content

Commit

Permalink
comment document api for code coverage as it is currently supported (#…
Browse files Browse the repository at this point in the history
…3473)

* comment document api for code coverage as it is currently supported

* fix format
  • Loading branch information
vidyasagar-m authored Jul 5, 2024
1 parent 0e9e307 commit 0aac8e8
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 295 deletions.
20 changes: 10 additions & 10 deletions pkg/controller/as3PostManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ func (postMgr *AS3PostManager) createAS3Declaration(tenantDeclMap map[string]as3
var as3Config map[string]interface{}
var adc map[string]interface{}
var baseAS3ConfigTemplate string
if !postMgr.AS3Config.DocumentAPI {
baseAS3ConfigTemplate = fmt.Sprintf(baseAS3Config, postMgr.AS3VersionInfo.as3Version,
postMgr.AS3VersionInfo.as3Release)
_ = json.Unmarshal([]byte(baseAS3ConfigTemplate), &as3Config)
adc = as3Config["declaration"].(map[string]interface{})
} else {
baseAS3ConfigTemplate = baseAS3Config2
_ = json.Unmarshal([]byte(baseAS3ConfigTemplate), &as3Config)
adc = as3Config
}
// if !postMgr.AS3Config.DocumentAPI {
baseAS3ConfigTemplate = fmt.Sprintf(baseAS3Config, postMgr.AS3VersionInfo.as3Version,
postMgr.AS3VersionInfo.as3Release)
_ = json.Unmarshal([]byte(baseAS3ConfigTemplate), &as3Config)
adc = as3Config["declaration"].(map[string]interface{})
// } else {
// baseAS3ConfigTemplate = baseAS3Config2
// _ = json.Unmarshal([]byte(baseAS3ConfigTemplate), &as3Config)
// adc = as3Config
// }

controlObj := make(map[string]interface{})
controlObj["class"] = "Controls"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const AbDeploymentDgName = "ab_deployment_dg"

const BigIPLabel = ""

const CmDocumentApi = "/api/v1/spaces/default/appsvcs/documents/"
// const CmDocumentApi = "/api/v1/spaces/default/appsvcs/documents/"

const CmDeclareApi = "/api/v1/spaces/default/appsvcs/declare"

Expand Down
Loading

0 comments on commit 0aac8e8

Please sign in to comment.