Skip to content

Commit 6d2fc7a

Browse files
Fix Ubuntu EOL tests
1 parent 2e73374 commit 6d2fc7a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

rewrite-docker/src/main/resources/META-INF/rewrite/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ examples:
141141
RUN apt-get install -y curl
142142
ENTRYPOINT /app/start.sh
143143
after: |
144-
~~(EOL: ubuntu:20.04 (ended 2025-05-31, suggest noble (24.04)))~~>~~(Missing HEALTHCHECK instruction)~~>FROM ubuntu:20.04
144+
~~(EOL: ubuntu:20.04 (ended 2025-05-31, suggest plucky (26.04)))~~>~~(Missing HEALTHCHECK instruction)~~>FROM ubuntu:20.04
145145
COPY app.jar /app/
146146
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
147147
ENTRYPOINT ["/app/start.sh"]

rewrite-docker/src/test/java/org/openrewrite/docker/DockerBestPracticesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void appliesBestPractices() {
4242
ENTRYPOINT /app/start.sh
4343
""",
4444
"""
45-
~~(EOL: ubuntu:20.04 (ended 2025-05-31, suggest noble (24.04)))~~>~~(Missing HEALTHCHECK instruction)~~>FROM ubuntu:20.04
45+
~~(EOL: ubuntu:20.04 (ended 2025-05-31, suggest plucky (26.04)))~~>~~(Missing HEALTHCHECK instruction)~~>FROM ubuntu:20.04
4646
COPY app.jar /app/
4747
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
4848
ENTRYPOINT ["/app/start.sh"]

rewrite-docker/src/test/java/org/openrewrite/docker/search/FindEndOfLifeImagesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void detectUbuntuXenial() {
102102
RUN apt-get update
103103
""",
104104
"""
105-
~~(EOL: ubuntu:16.04 (ended 2021-04-02, suggest noble (24.04)))~~>FROM ubuntu:16.04
105+
~~(EOL: ubuntu:16.04 (ended 2021-04-02, suggest plucky (26.04)))~~>FROM ubuntu:16.04
106106
RUN apt-get update
107107
"""
108108
)
@@ -118,7 +118,7 @@ void detectUbuntuBionic() {
118118
RUN apt-get update
119119
""",
120120
"""
121-
~~(EOL: ubuntu:bionic (ended 2023-05-31, suggest noble (24.04)))~~>FROM ubuntu:bionic
121+
~~(EOL: ubuntu:bionic (ended 2023-05-31, suggest plucky (26.04)))~~>FROM ubuntu:bionic
122122
RUN apt-get update
123123
"""
124124
)

0 commit comments

Comments
 (0)