Skip to content
Snippets Groups Projects
Commit a0fa5ff0 authored by Alex Complojer's avatar Alex Complojer
Browse files

new arango test endpoints

parent d2691d83
No related branches found
No related tags found
1 merge request!2Draft: Preview Version / POC: A4F Graph Analyizer
Pipeline #12790 failed
......@@ -96,6 +96,19 @@ export default {
name: "Graph",
data: function() {
return {
arango: {
url: "http://100.76.120.39:8529",
user: "dashboard",
pass: "dashboard",
database: {
spdx: "spdx_demo",
banger: "banger_demo"
},
graph: {
spdx: "spdx-view",
banger: "banger-view"
}
},
db: {
a4f: false,
compliance: false
......@@ -156,21 +169,21 @@ export default {
// TODO: serverside proxy to hide non-test credentials
this.db.a4f = new Database({
url: "http://135.181.254.40:8529",
databaseName: "oniro-test1",
auth: { username: "dashboard", password: "dashboard" }
url: this.arango.url,
databaseName: this.arango.database.spdx,
auth: { username: this.arango.user, password: this.arango.pass }
})
this.db.compliance = new Database({
url: "http://135.181.254.40:8529",
databaseName: "compliance",
auth: { username: "dashboard", password: "dashboard" }
url: this.arango.url,
databaseName: this.arango.database.banger,
auth: { username: this.arango.user, password: this.arango.pass }
})
this.graph = new Graph()
await this.fetchGraph(this.db.a4f)
await this.fetchGraph(this.db.compliance, "oniro-image-compliance")
await this.fetchGraph(this.db.a4f, this.arango.graph.spdx)
await this.fetchGraph(this.db.compliance, this.arango.graph.banger)
this.draw()
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment