You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Before
public void setup() {
final String basedir = System.getProperty("project.basedir");
final String password = "changeit";
final String keyStore = basedir + "/src/it/resources/keystore.jks";
[...]
System.setProperty("kubernetes.keystore.file", keyStore);
[...]
}
System.getProperty("project.basedir") always returns null and the system property kubernetes.keystore.file is always set to null/src/it/resources/keystore.jks
Please also note that tests are not failing if you delete the file src/it/resources/keystore.jks, so it looks like this file is not used too.
Looking at the pom.xml I guess that the first idea was to use the environment variable PROJECT_DIR :
System.getProperty("project.basedir") should be replaced with System.getenv("PROJECT_DIR")
The problem is that by setting a wrong system property with System.setProperty("..") without further cleanup with a @After it has some side effects on other piece of code.
The text was updated successfully, but these errors were encountered:
It looks like there is some dead code here :
System.getProperty("project.basedir")
always returnsnull
and the system propertykubernetes.keystore.file
is always set tonull/src/it/resources/keystore.jks
Please also note that tests are not failing if you delete the file
src/it/resources/keystore.jks
, so it looks like this file is not used too.Looking at the pom.xml I guess that the first idea was to use the environment variable
PROJECT_DIR
:System.getProperty("project.basedir")
should be replaced withSystem.getenv("PROJECT_DIR")
The problem is that by setting a wrong system property with
System.setProperty("..")
without further cleanup with a@After
it has some side effects on other piece of code.The text was updated successfully, but these errors were encountered: