-
Notifications
You must be signed in to change notification settings - Fork 5
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
Integration test generated by RoostGPT #22
base: main
Are you sure you want to change the base?
Conversation
Using AI Model roost-gpt4-32k
public void testGrantAuthorization() { | ||
|
||
//@TODO Read header,payload and response for /accounts | ||
String header = "" ; // replace with data read from file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the logic to read data from file is missing
METHOD^|^URL^|^REQ_HEADERS^|^REQ_BODY^|^RESPONSE_CODE^|^RESPONSE_BODY | ||
|
||
POST^|^http://localhost:8080/accounts^|^{"commit-hash": "abc123"}^|^{"email": "[email protected]"}^|^201^|^{"description": "successful operation", "headers": {"api-version": "1.0.0", "commit-hash": "928d28d"}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while reading the file, logic should be to skip empty lines
import static org.hamcrest.Matchers.*; | ||
import org.junit.BeforeClass; | ||
|
||
public class scenario803fe763f5Test { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this class name match with the file name?
At present, it is not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected className
public class scenario803fe763f5Test { | |
public class scenario_803fe763f5_Test { |
Access Logs At - https://dev.roost.ai/roostgpt/logs?trigger_id=05b3d32a-5434-4859-84b0-07f50d04ab77