Skip to content

Commit

Permalink
renamed project() -> projectId()
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Dolzhenko committed Oct 1, 2018
1 parent 1159638 commit 38cdcc0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public interface GceInstancesService extends Closeable {
*/
Collection<Instance> instances();

String project();
String projectId();

List<String> zones();
}
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public synchronized Compute client() {
}

@Override
public String project() {
public String projectId() {
return project;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public GceUnicastHostsProvider(Settings settings, GceInstancesService gceInstanc
this.networkService = networkService;

this.refreshInterval = GceInstancesService.REFRESH_SETTING.get(settings);
this.project = gceInstancesService.project();
this.project = gceInstancesService.projectId();
this.zones = gceInstancesService.zones();

this.tags = TAGS_SETTING.get(settings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public Collection<Instance> instances() {
}

@Override
public String project() {
public String projectId() {
return PROJECT_SETTING.get(settings);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public void testNoRegionReturnsEmptyList() {
public void testMetadataServerValues() {
Settings nodeSettings = Settings.EMPTY;
mock = new GceInstancesServiceMock(nodeSettings);
assertThat(mock.project(), not(projectName));
assertThat(mock.projectId(), not(projectName));

List<TransportAddress> dynamicHosts = buildDynamicNodes(mock, nodeSettings);
assertThat(dynamicHosts, hasSize(1));
Expand Down

0 comments on commit 38cdcc0

Please sign in to comment.