Skip to content

Commit

Permalink
update check connection url
Browse files Browse the repository at this point in the history
  • Loading branch information
holywen committed May 10, 2023
1 parent 7ee41c3 commit 90c2e90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/pluginspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ configuration:
restConfigInfo:
endpointLabel: 'Nexus IQ Server URL'
endpointDescription: Specify the URL to the IQ Nexus server. e.g. http://nexus-iq-server:8070
checkConnectionUri: '/api/v2/users'
checkConnectionUri: '/api/v2/organizations'
defaultEndpointValue: http://nexus-iq-server:8070
headers:
Accept: 'application/json'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import static groovyx.net.http.ContentType.JSON
import org.apache.http.auth.*

def checkConnectionMetaString = '''
{"authSchemes":{"basic":{"checkConnectionUri":null,"credentialName":"basic_credential"}},"checkConnectionUri":"/api/v2/users","headers":{"Accept":"application/json"}}
{"authSchemes":{"basic":{"checkConnectionUri":null,"credentialName":"basic_credential"}},"checkConnectionUri":"/api/v2/organizations","headers":{"Accept":"application/json"}}
'''

def checkConnectionMeta = new JsonSlurper().parseText(checkConnectionMetaString)
Expand Down Expand Up @@ -212,4 +212,4 @@ def augmentUri(path, uri) {
p = p.replaceAll(/\/+/, '/')
return p
}
// DO NOT EDIT THIS BLOCK ABOVE ^^^=== check_connection ends, checksum: 7ee030d6439665e89ac1e70f86e2d3b0 ===
// DO NOT EDIT THIS BLOCK ABOVE ^^^=== check_connection ends, checksum: db5f9299d4002a86d215bf148bd619e4 ===
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import static groovyx.net.http.ContentType.JSON
import org.apache.http.auth.*

def checkConnectionMetaString = '''
{"authSchemes":{"basic":{"checkConnectionUri":null,"credentialName":"basic_credential"}},"checkConnectionUri":"/api/v2/users","headers":{"Accept":"application/json"}}
{"authSchemes":{"basic":{"checkConnectionUri":null,"credentialName":"basic_credential"}},"checkConnectionUri":"/api/v2/organizations","headers":{"Accept":"application/json"}}
'''

def checkConnectionMeta = new JsonSlurper().parseText(checkConnectionMetaString)
Expand Down Expand Up @@ -212,4 +212,4 @@ def augmentUri(path, uri) {
p = p.replaceAll(/\/+/, '/')
return p
}
// DO NOT EDIT THIS BLOCK ABOVE ^^^=== check_connection ends, checksum: 7ee030d6439665e89ac1e70f86e2d3b0 ===
// DO NOT EDIT THIS BLOCK ABOVE ^^^=== check_connection ends, checksum: db5f9299d4002a86d215bf148bd619e4 ===

0 comments on commit 90c2e90

Please sign in to comment.