-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed use of Approvals from compaction system tests
- Loading branch information
1 parent
9acdfc4
commit 22ebd70
Showing
11 changed files
with
69 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...C2ST.MergePartialFiles.shouldCompactOneFileIntoExistingFilesOnLeafPartitions.approved.txt
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...pactionOnFargateST.MergeFiles.shouldCompactFilesUsingBasicCompactionStrategy.approved.txt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...ctionOnFargateST.MergeFiles.shouldCompactFilesUsingDefaultCompactionStrategy.approved.txt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...gePartialFiles.shouldCompactOneFileFromRootIntoExistingFilesOnLeafPartitions.approved.txt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...teST.MergePartialFiles.shouldCompactOneFileIntoExistingFilesOnLeafPartitions.approved.txt
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
...test/system-test-suite/src/test/java/sleeper/systemtest/suite/testutil/TestResources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright 2022-2024 Crown Copyright | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package sleeper.systemtest.suite.testutil; | ||
|
||
import org.apache.commons.io.IOUtils; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
import java.io.InputStreamReader; | ||
import java.io.Reader; | ||
import java.net.URL; | ||
import java.util.Objects; | ||
|
||
public class TestResources { | ||
|
||
private TestResources() { | ||
} | ||
|
||
public static String exampleString(String path) { | ||
try (Reader reader = exampleReader(path)) { | ||
return IOUtils.toString(reader); | ||
} catch (IOException e) { | ||
throw new IllegalStateException("Failed to load example: " + path, e); | ||
} | ||
} | ||
|
||
public static Reader exampleReader(String path) { | ||
return new InputStreamReader(exampleInputStream(path)); | ||
} | ||
|
||
public static InputStream exampleInputStream(String path) { | ||
URL resource = Objects.requireNonNull(TestResources.class.getClassLoader().getResource(path)); | ||
try { | ||
return resource.openStream(); | ||
} catch (IOException e) { | ||
throw new IllegalStateException("Failed to load test example: " + path, e); | ||
} | ||
} | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.