Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: added new test for node edge #2304

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
cache: "yarn"
- name: Clone Stack
run: |
git clone https://github.com/stakwork/sphinx-stack.git stack
git clone -b multipleWorkers https://github.com/stakwork/sphinx-stack.git stack

- name: Give Permissions to Sphinx Nav Fiber
run: chmod 777 -R relay
Expand Down
29 changes: 29 additions & 0 deletions cypress/e2e/createGeneratedEdges/createGeneratedEdges.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
describe('Test Create Generated edges on Jarvis', () => {
it('Should response successfully when creating generated edges', () => {
cy.request({
method: 'POST',
url: `http://localhost:8444/api/node/edge`,
headers: { 'x-api-token': 'navfiber-tester' },
body: {
edge: {
edge_type: 'RELATED_TO',
weight: 1,
},
source: {
node_type: 'Person',
node_data: {
name: 'Tom Smith',
},
},
target: {
node_type: 'Topic',
node_data: {
name: 'Stakwork',
},
},
},
}).then((response) => {
expect(response.status).to.equal(200)
})
})
})
Loading