-
Notifications
You must be signed in to change notification settings - Fork 5
Casl 1434 mom10 app service #536
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
Conversation
Signed-off-by: Jakub Amanowicz <[email protected]>
Signed-off-by: Jakub Amanowicz <[email protected]>
Signed-off-by: Jakub Amanowicz <[email protected]>
Signed-off-by: Jakub Amanowicz <[email protected]>
Signed-off-by: Jakub Amanowicz <[email protected]>
Code Coverage
Files
|
here-naksha-app-service/src/test/resources/unit_test_data/Mom10/testCreate/features.json
Show resolved
Hide resolved
...-naksha-app-service/src/test/resources/unit_test_data/Mom10/testDropNamespaces/features.json
Show resolved
Hide resolved
...-naksha-app-service/src/test/resources/unit_test_data/Mom10/testDropNamespaces/response.json
Show resolved
Hide resolved
here-naksha-app-service/src/test/resources/unit_test_data/Mom10/testOldNamespaces/features.json
Show resolved
Hide resolved
here-naksha-app-service/src/test/resources/unit_test_data/Mom10/testRead/features.json
Show resolved
Hide resolved
...sha-app-service/src/main/java/com/here/naksha/app/service/http/tasks/ReadFeatureApiTask.java
Show resolved
Hide resolved
...sha-app-service/src/main/java/com/here/naksha/app/service/http/tasks/ReadFeatureApiTask.java
Show resolved
Hide resolved
...service/src/main/java/com/here/naksha/app/service/http/tasks/processor/TagsPreProcessor.java
Outdated
Show resolved
Hide resolved
...ha-app-service/src/main/java/com/here/naksha/app/service/http/tasks/WriteFeatureApiTask.java
Show resolved
Hide resolved
...ha-app-service/src/main/java/com/here/naksha/app/service/http/tasks/WriteFeatureApiTask.java
Outdated
Show resolved
Hide resolved
...sha-app-service/src/main/java/com/here/naksha/app/service/http/tasks/ReadFeatureApiTask.java
Show resolved
Hide resolved
...ha-app-service/src/main/java/com/here/naksha/app/service/http/tasks/WriteFeatureApiTask.java
Show resolved
Hide resolved
here-naksha-app-service/src/test/java/com/here/naksha/app/service/Mom10Test.java
Show resolved
Hide resolved
here-naksha-app-service/src/test/java/com/here/naksha/app/service/Mom10Test.java
Show resolved
Hide resolved
here-naksha-app-service/src/test/java/com/here/naksha/app/service/Mom10Test.java
Show resolved
Hide resolved
Signed-off-by: Jakub Amanowicz <[email protected]>
Signed-off-by: Jakub Amanowicz <[email protected]>
Code Coverage
Files
|
Signed-off-by: Jakub Amanowicz <[email protected]>
Code Coverage
Files
|
Signed-off-by: Jakub Amanowicz <[email protected]>
Code Coverage
Files
|
| } | ||
| } else { | ||
| if (responseType.equals(HttpResponseType.FEATURE)) { | ||
| return transformWriteResultToXyzFeatureResponse(wrResult, XyzFeature.class); |
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 think we need MOM10 post processor here as well?
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.
done
| HttpResponse<String> createResp = getNakshaClient().post("hub/spaces/" + SPACE_ID + "/features", createFeatureJson, streamId); | ||
| assertThat(createResp).hasStatus(200); | ||
|
|
||
| // And: We do little hacking - patching the feature with different `modelVersion` (MOM 10) so that MOM 10 transformation will happen |
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.
Correct me if I'm wrong, but this Patch step is not adding any value to the test and can be removed (to avoid confusion for other devs). It is fine, if this test is just about Creating MOM10 and Reading back MOM10 Feature and validating that we still get the originally submitted MOM10 Feature as is, without old Delta and Meta namespaces.
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 did to demonstrate that deltaNs and metaNs that were the user's input have nothing to do with what's been added by Naksha - the main excercise here is comparison between initial and final values in old namespaces
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.
We also need to check that the synchronous Response obtained on "Write Request" does not have old Delta and Meta namespaces. It can be added to any of the test cases here.
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 is already covered in shouldCreateMom10Feature
Signed-off-by: Jakub Amanowicz <[email protected]>
Code Coverage
Files
|
No description provided.