blob: 67316c6fb7ffbd5613b8f200a9893eb16ac66d83 (
plain) (
blame)
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.deployment;
import com.yahoo.config.provision.ApplicationId;
/**
* Holds an application ID for a tester application.
*
* @author jonmv
*/
public class TesterId {
public static final String suffix = "-t";
private final ApplicationId id;
private TesterId(ApplicationId id) {
this.id = id;
}
/** Creates a new TesterId for a tester of the given application. */
public static TesterId of(ApplicationId id) {
return new TesterId(ApplicationId.from(id.tenant().value(),
id.application().value(),
id.instance().value() + suffix));
}
/** Returns the id of this tester application. */
public ApplicationId id() {
return id;
}
}
|