Skip to content

Commit 50926fd

Browse files
akashgp09jrodewig
andauthored
[DOCS] Fixe broken links in README file (#69626)
Co-authored-by: James Rodewig <[email protected]>
1 parent 547745d commit 50926fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

qa/os/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ See the section in [TESTING.asciidoc](../../TESTING.asciidoc#testing-packaging)
2323

2424
When gradle runs the packaging tests on a VM, it runs the full suite by
2525
default. To add a test class to the suite, add its `class` to the
26-
`@SuiteClasses` annotation in [PackagingTests.java](src/main/java/org/elasticsearch/packaging/PackagingTests.java).
26+
`@SuiteClasses` annotation in [PackagingTestCase.java](src/test/java/org/elasticsearch/packaging/test/PackagingTestCase.java).
2727
If a test class is added to the project but not to this annotation, it will not
2828
run in CI jobs. The test classes are run in the order they are listed in the
2929
annotation.
3030

3131
## Choosing which distributions to test
3232

33-
Distributions are represented by [enum values](src/main/java/org/elasticsearch/packaging/util/Distribution.java)
33+
Distributions are represented by [enum values](src/test/java/org/elasticsearch/packaging/util/Distribution.java)
3434
which know if they are compatible with the platform the tests are currently
3535
running on. To skip a test if the distribution it's using isn't compatible with
3636
the current platform, put this [assumption](https://github.com/junit-team/junit4/wiki/assumptions-with-assume)
@@ -41,7 +41,7 @@ assumeTrue(distribution.packaging.compatible);
4141
```
4242

4343
Similarly if you write a test that is intended only for particular platforms,
44-
you can make an assumption using the constants and methods in [Platforms.java](src/main/java/org/elasticsearch/packaging/util/Platforms.java)
44+
you can make an assumption using the constants and methods in [Platforms.java](src/test/java/org/elasticsearch/packaging/util/Platforms.java)
4545

4646
```java
4747
assumeTrue("only run on windows", Platforms.WINDOWS);
@@ -73,14 +73,14 @@ public class MyTestDefaultTar extends MyTestCase {
7373
```
7474

7575
That way when a test fails the user gets told explicitly that `MyTestDefaultTar`
76-
failed, and to reproduce it they should run that class. See [ArchiveTestCase](src/main/java/org/elasticsearch/packaging/test/ArchiveTestCase.java)
76+
failed, and to reproduce it they should run that class. See [ArchiveTestCase](src/test/java/org/elasticsearch/packaging/test/ArchiveTests.java)
7777
and its children for an example of this.
7878

7979
## Running external commands
8080

8181
In general it's probably best to avoid running external commands when a good
8282
Java alternative exists. For example most filesystem operations can be done with
83-
the java.nio.file APIs. For those that aren't, use an instance of [Shell](src/main/java/org/elasticsearch/packaging/util/Shell.java)
83+
the java.nio.file APIs. For those that aren't, use an instance of [Shell](src/test/java/org/elasticsearch/packaging/util/Shell.java)
8484

8585
This class runs scripts in either bash with the `bash -c <script>` syntax,
8686
or in powershell with the `powershell.exe -Command <script>` syntax.

0 commit comments

Comments
 (0)