|
4 | 4 |
|
5 | 5 | package oracle.kubernetes.operator; |
6 | 6 |
|
7 | | -import java.io.File; |
8 | | -import java.io.IOException; |
9 | 7 | import java.nio.file.Files; |
10 | 8 | import java.nio.file.Paths; |
11 | | -import java.nio.file.StandardCopyOption; |
12 | 9 | import java.util.Map; |
13 | 10 | import java.util.Properties; |
14 | 11 | import java.util.logging.FileHandler; |
@@ -502,52 +499,6 @@ public static String getBranchName() { |
502 | 499 | return branchName; |
503 | 500 | } |
504 | 501 |
|
505 | | - /** |
506 | | - * Use this method to override the create_domain.py script with a custom one. Remember to call |
507 | | - * unoverrideCreateDomainScript below after you are done. |
508 | | - * |
509 | | - * @param scriptPath |
510 | | - * @throws IOException |
511 | | - */ |
512 | | - public void overrideCreateDomainScript(String scriptPath) throws IOException { |
513 | | - |
514 | | - if (scriptPath == null) { |
515 | | - return; |
516 | | - } |
517 | | - |
518 | | - logger.info("Overriding create domain script with this: " + scriptPath); |
519 | | - |
520 | | - String createDomainScriptDir = |
521 | | - BaseTest.getProjectRoot() + "/integration-tests/src/test/resources/domain-home-on-pv"; |
522 | | - |
523 | | - // cp py |
524 | | - Files.copy( |
525 | | - new File(createDomainScriptDir + "/create-domain.py").toPath(), |
526 | | - new File(createDomainScriptDir + "/create-domain.py.bak").toPath(), |
527 | | - StandardCopyOption.REPLACE_EXISTING); |
528 | | - Files.copy( |
529 | | - new File(BaseTest.getProjectRoot() + scriptPath).toPath(), |
530 | | - new File(createDomainScriptDir + "/create-domain.py").toPath(), |
531 | | - StandardCopyOption.REPLACE_EXISTING); |
532 | | - } |
533 | | - |
534 | | - /** |
535 | | - * Reverts the custom create_domain.py script with the default one. Should be called after you are |
536 | | - * done with overrideCreateDomainScript above. |
537 | | - * |
538 | | - * @throws IOException |
539 | | - */ |
540 | | - public void unoverrideCreateDomainScript() throws IOException { |
541 | | - |
542 | | - String createDomainScriptDir = |
543 | | - BaseTest.getProjectRoot() + "/integration-tests/src/test/resources/domain-home-on-pv"; |
544 | | - |
545 | | - Files.copy( |
546 | | - new File(createDomainScriptDir + "/create-domain.py.bak").toPath(), |
547 | | - new File(createDomainScriptDir + "/create-domain.py").toPath(), |
548 | | - StandardCopyOption.REPLACE_EXISTING); |
549 | | - } |
550 | | - |
551 | 502 | private void copyScalingScriptToPod( |
552 | 503 | String dirPathToCreate, String domainUID, String podName, String domainNS) throws Exception { |
553 | 504 |
|
|
0 commit comments