Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed May 13, 2022
1 parent 412337f commit eab062d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Expand Up @@ -701,10 +701,10 @@ public Integer getDaysSinceCustomTime() {
}

public List<String> getMatchesPrefix() {
return matchesPrefix;
return matchesPrefix;
}

public List<String> getMatchesSuffix() {
public List<String> getMatchesSuffix() {
return matchesSuffix;
}

Expand Down Expand Up @@ -820,19 +820,17 @@ public Builder setDaysSinceCustomTime(Integer daysSinceCustomTime) {
}

/**
* Sets the list of prefixes.
* If any prefix matches the beginning of the object’s name,
* this portion of the condition is satisfied for that object.
* Sets the list of prefixes. If any prefix matches the beginning of the object’s name, this
* portion of the condition is satisfied for that object.
*/
public Builder setMatchesPrefix(List<String> matchesPrefix) {
this.matchesPrefix = matchesPrefix;
return this;
}

/**
* Sets the list of suffixes.
* If any suffix matches the end of the object’s name,
* this portion of the condition is satisfied for that object.
* Sets the list of suffixes. If any suffix matches the end of the object’s name, this
* portion of the condition is satisfied for that object.
*/
public Builder setMatchesSuffix(List<String> matchesSuffix) {
this.matchesSuffix = matchesSuffix;
Expand Down
Expand Up @@ -369,7 +369,7 @@ public void testLifecycleRules() {
assertEquals(StorageClass.COLDLINE.toString(), lifecycleRule.getAction().getStorageClass());
assertEquals(30, lifecycleRule.getCondition().getDaysSinceCustomTime().intValue());
assertNotNull(lifecycleRule.getCondition().getCustomTimeBefore());
assertEquals("prefix-",lifecycleRule.getCondition().getMatchesPrefix().get(0));
assertEquals("prefix-", lifecycleRule.getCondition().getMatchesPrefix().get(0));
assertEquals("-suffix", lifecycleRule.getCondition().getMatchesSuffix().get(0));

Rule unsupportedRule =
Expand Down

0 comments on commit eab062d

Please sign in to comment.