-
Notifications
You must be signed in to change notification settings - Fork 791
/
TestImage.java
34 lines (27 loc) · 749 Bytes
/
TestImage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.smoketest;
public class TestImage {
public final Platform platform;
public final String imageName;
public TestImage(Platform platform, String imageName) {
this.platform = platform;
this.imageName = imageName;
}
@Override
public String toString() {
return imageName + "(" + platform + ")";
}
public static TestImage linuxImage(String imageName) {
return new TestImage(Platform.LINUX_X86_64, imageName);
}
public static TestImage windowsImage(String imageName) {
return new TestImage(Platform.WINDOWS_X86_64, imageName);
}
public enum Platform {
WINDOWS_X86_64,
LINUX_X86_64,
}
}