Skip to content

Commit 9dd872b

Browse files
committed
Cleanup
1 parent c685c27 commit 9dd872b

File tree

1 file changed

+0
-49
lines changed
  • integration-tests/src/test/java/oracle/kubernetes/operator

1 file changed

+0
-49
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/BaseTest.java

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44

55
package oracle.kubernetes.operator;
66

7-
import java.io.File;
8-
import java.io.IOException;
97
import java.nio.file.Files;
108
import java.nio.file.Paths;
11-
import java.nio.file.StandardCopyOption;
129
import java.util.Map;
1310
import java.util.Properties;
1411
import java.util.logging.FileHandler;
@@ -502,52 +499,6 @@ public static String getBranchName() {
502499
return branchName;
503500
}
504501

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-
551502
private void copyScalingScriptToPod(
552503
String dirPathToCreate, String domainUID, String podName, String domainNS) throws Exception {
553504

0 commit comments

Comments
 (0)