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

Add tests #51

Merged
merged 24 commits into from
Sep 16, 2024
Merged

Add tests #51

merged 24 commits into from
Sep 16, 2024

Conversation

tutkat
Copy link
Contributor

@tutkat tutkat commented Aug 13, 2024

No description provided.

Copy link
Contributor

@thogarty thogarty left a 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;
Copy link
Contributor

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.

Copy link
Contributor Author

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}}
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

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;
Copy link
Contributor

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.

Copy link
Contributor Author

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

return this;
}
}
public class TokenRequestDto{
Copy link
Contributor

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?

Copy link
Contributor Author

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

v4/api/dto/users/UserResources.java Outdated Show resolved Hide resolved
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
Copy link
Contributor

@thogarty thogarty left a 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.

Copy link
Contributor

@thogarty thogarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Ship it.

@tutkat tutkat merged commit 727ac44 into main Sep 16, 2024
@tutkat tutkat deleted the addTests branch September 16, 2024 07:11
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

Successfully merging this pull request may close these issues.

2 participants