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

Failure while creating new engagement #25

Open
wheelq opened this issue Jun 7, 2019 · 2 comments
Open

Failure while creating new engagement #25

wheelq opened this issue Jun 7, 2019 · 2 comments

Comments

@wheelq
Copy link

wheelq commented Jun 7, 2019

When trying to create a new angagement via API I have encountered issue described below.
URL used: /api/v1/doc/#!/engagements/engagements_list_0

JSON used:

{
  "status": "Not Started",
  "build_id": "",
  "updated": "",
  "source_code_management_uri": "",
  "description": "",
  "product": "/api/v1/products/4/",
  "pen_test": false,
  "reason": "",
  "branch_tag": "",
  "commit_hash": "",
  "risk_path": "",
  "orchestration_engine": "",
  "first_contacted": "",
  "active": false,
  "done_testing": false,
  "deduplication_on_engagement": false,
  "target_end": "2019-07-07",
  "tmodel_path": "",
  "build_server": "",
  "source_code_management_server": "",
  "name": "",
  "lead": "",
  "created": "",
  "check_list": false,
  "target_start": "2019-06-06",
  "version": "",
  "tracker": "",
  "api_test": false,
  "progress": "",
  "threat_model": false,
  "engagement_type": "",
  "test_strategy": ""
}

Response:

{"error": "Could not find the provided tool_configurations object via resource URI ''."}

There is no such key as tool_configurations in the engagements Model Schema.

Here is the output after calling tool_configurations endpoint:

Request URL

/api/v1/tool_configurations/

Response Body

{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 0}, "objects": []}

Response Code

200

Response Headers

{
  "date": "Fri, 07 Jun 2019 15:59:37 GMT",
  "vary": "Accept, Cookie",
  "server": "nginx/1.15.11",
  "x-frame-options": "SAMEORIGIN",
  "content-type": "application/json",
  "cache-control": "no-cache",
  "connection": "keep-alive",
  "content-length": "101"
}
@wheelq
Copy link
Author

wheelq commented Jun 10, 2019

What should be the label here?

@atraista-ellation
Copy link

Same issue. Any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants