Skip to content

Commit

Permalink
fix: nit cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TimurSadykov committed Jan 6, 2024
1 parent 81a21b4 commit ed6e4d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public String getUniverseDomain() throws IOException {
/**
* Gets the flag indicating whether universeDomain was explicitly set by the developer.
*
* <p>If subclass has requirements to give priority to developer-set universeDomain, this property
* <p>If subclass has a requirement to give priority to developer-set universeDomain, this property
* must be used to check if the universeDomain value was provided by the user. It could be a
* default otherwise.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,6 @@ public void getDefaultCredentials_noCredentials_linuxNotGce() throws IOException

@Test
public void getDefaultCredentials_static_linux() throws IOException {
TestDefaultCredentialsProvider testProvider = new TestDefaultCredentialsProvider();
testProvider.setProperty("os.name", "linux");
String productFilePath = SMBIOS_PATH_LINUX;
File productFile = new File(productFilePath);
InputStream productStream = new ByteArrayInputStream("Googlekdjsfhg".getBytes());
testProvider.addFile(productFile.getAbsolutePath(), productStream);

assertTrue(ComputeEngineCredentials.checkStaticGceDetection(testProvider));
}

@Test
public void getDefaultCredentials_static_Linux() throws IOException {
TestDefaultCredentialsProvider testProvider = new TestDefaultCredentialsProvider();
testProvider.setProperty("os.name", "Linux");
String productFilePath = SMBIOS_PATH_LINUX;
Expand Down

0 comments on commit ed6e4d3

Please sign in to comment.