-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add tests #51
Conversation
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.
Can you provide details on test output or instructions to perform the tests locally so that I can verify the changes?
There's too much going on here with a lot of changes being so minutely different that I cannot track them.
import io.swagger.v3.oas.models.parameters.Parameter; | ||
import io.swagger.v3.oas.models.parameters.Parameter.StyleEnum; | ||
import io.swagger.v3.parser.OpenAPIV3Parser; | ||
import io.swagger.v3.oas.models.OpenAPI; |
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.
There's too much changing just because of whitespace modifications. I don't know which lines you've changed because there are 3,375 lines changed and most of them are whitespace. Your PRs need to just include whichever details you've actually changed. There shouldn't be whitespace modifications like this.
Cannot review until the PR is limited to only the lines that you've changed.
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.
I've came back to previous formatting so you have changes what I needed only :)
@@ -0,0 +1,548 @@ | |||
{{>licenseInfo}} |
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.
Which lines in this file are different than the base template? Can you provide information about why this was included and what it supports in your solution?
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.
108, 120, 130,134 - gson requires to register some class to serialize/deserialize in the proper way.
@@ -1,61 +0,0 @@ | |||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time |
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.
Why is this workflow being removed? Please provide justification for changes. I don't have enough context to understand the changes you're making. Either provide smaller separate PRs or provide a lot more context to me so that I can understand the changes you're making.
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.
it was replaced by new flow to run tests for commit which will provide the code is compilible and prove that tests are good
@@ -1,98 +0,0 @@ | |||
package com.equinix.openapi.fabric.v4.api; |
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.
Is the folder v4/api all completely manually added by you? No code generation?
I don't know how this will be able to keep up because it's pulling a lot of code generated files over to it that are subject to change causing lots of overhead when updating tests.
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.
this class had been removed. these files must be located in separated folder because that is the java code structure. tests must be placed in defined place to run in during different maven command like test, package, publish etc. api code library generates only frames for each group of endpoints and they are without implementation
v4/api/dto/TokenRequestDto.java
Outdated
return this; | ||
} | ||
} | ||
public class TokenRequestDto{ |
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.
Why can't you leverage the code generation file for this? Why is it that you've hard copied so many files?
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.
I explained in another comment
added sleep app path for the report updated url removed variable from flow added new tests added generating report for tests added tests added dtos for test data
created method to generate random vlanNumber
# Conflicts: # equinix-openapi-fabric/src/test/java/com/equinix/openapi/fabric/v4/api/ConnectionsApiTest.java
# Conflicts: # equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/v4/model/CustomField.java # equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/v4/model/Port.java
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.
One comment to address, as well as the code generation for JSON.java from the correct template.
equinix-openapi-fabric/src/main/java/com/equinix/openapi/fabric/ApiClient.java
Outdated
Show resolved
Hide resolved
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.
LGTM. Ship it.
No description provided.