Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
salyh committed Mar 10, 2024
1 parent 9387a69 commit e3c8bd5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
rm -rf ~/.gradle || true
sleep 2
rm -rf ~/.gradle || true
./gradlew check --no-daemon --no-scan --continue
./gradlew check --no-daemon --no-scan --continue --warning-mode=all
- name: Upload test results
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle-integtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
distribution: temurin
- name: Run gradle integTest
run: |
./gradlew integTest --continue --stacktrace --info
./gradlew integTest --continue --warning-mode=all
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
Expand Down
4 changes: 3 additions & 1 deletion test/fixtures/krb5kdc-fixture/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ FROM ubuntu:14.04
RUN apt update -y
RUN apt upgrade -y
ADD . /fixture
RUN echo kerberos.build.opensearch.org > /etc/hostname && echo "127.0.0.1 kerberos.build.opensearch.org" >> /etc/hosts
#https://stackoverflow.com/questions/69168860/how-to-fix-read-only-error-when-adding-host-in-docker
#RUN echo kerberos.build.opensearch.org > /etc/hostname
#RUN echo "127.0.0.1 kerberos.build.opensearch.org" >> /etc/hosts
RUN bash /fixture/src/main/resources/provision/installkdc.sh

EXPOSE 88
Expand Down
4 changes: 4 additions & 0 deletions test/fixtures/krb5kdc-fixture/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
version: '3'
services:
peppa:
extra_hosts:
- "kerberos.build.opensearch.org:127.0.0.1"
hostname: kerberos.build.opensearch.org
build:
context: .
Expand All @@ -14,6 +16,8 @@ services:
- "4444"
- "88/udp"
hdfs:
extra_hosts:
- "kerberos.build.opensearch.org:127.0.0.1"
hostname: kerberos.build.opensearch.org
build:
context: .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.opensearch.Version;
import org.opensearch.common.Booleans;
import org.opensearch.common.collect.Tuple;
import org.junit.Ignore;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -302,7 +301,7 @@ public void testResolveReleasedVersionsAtNewMinorBranchIn2x() {
* Tests that {@link Version#minimumCompatibilityVersion()} and {@link VersionUtils#allReleasedVersions()}
* agree with the list of wire and index compatible versions we build in gradle.
*/
@Ignore
@AwaitsFix(bugUrl = "https://dummy")
public void testGradleVersionsMatchVersionUtils() {
// First check the index compatible versions
VersionsFromProperty indexCompatible = new VersionsFromProperty("tests.gradle_index_compat_versions");
Expand Down

0 comments on commit e3c8bd5

Please sign in to comment.