Skip to content

[ZEPPELIN-6435] Remove frontend build dependency from IndexHtmlServletTest#5314

Open
gyowoo1113 wants to merge 1 commit into
apache:masterfrom
gyowoo1113:ZEPPELIN-6435-index-html-servlet-test-frontend-independence
Open

[ZEPPELIN-6435] Remove frontend build dependency from IndexHtmlServletTest#5314
gyowoo1113 wants to merge 1 commit into
apache:masterfrom
gyowoo1113:ZEPPELIN-6435-index-html-servlet-test-frontend-independence

Conversation

@gyowoo1113

Copy link
Copy Markdown
Contributor

What is this PR for?

IndexHtmlServletTest included a disabled Angular HTML addon test because it depended on the generated file at zeppelin-web-angular/dist/zeppelin/index.html. That artifact is not built during normal zeppelin-server tests, so the test could not run independently.

This PR replaces the frontend build dependency with a temporary, test-owned index.html file and re-enables testZeppelinWebAngularHtmlAddon.

The zeppelin-web index and the Angular-style index exercise different branches in IndexHtmlServlet. The zeppelin-web index does not contain explicit </head> and </body> closing tags, so the servlet falls back to inserting the head addon before <body> and the body addon before </html>. The Angular-style index contains both closing tags, so the re-enabled test verifies that the configured head and body addons are inserted immediately before </head> and </body>.

What type of PR is it?

Improvement

Todos

  • Remove the dependency on zeppelin-web-angular/dist/zeppelin/index.html
  • Create a temporary, test-owned Angular-style index.html
  • Re-enable testZeppelinWebAngularHtmlAddon
  • Verify addon insertion before </head> and </body>

What is the Jira issue?

[ZEPPELIN-6435]

How should this be tested?

./mvnw test -pl zeppelin-server -Dtest=IndexHtmlServletTest passes successfully.

Screenshots (if appropriate)

N/A

Questions:

  • Does the license files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

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.

1 participant