Skip to content

Commit

Permalink
Add DCO workflow and fix failing IT
Browse files Browse the repository at this point in the history
Signed-off-by: Sruti Parthiban <partsrut@amazon.com>
  • Loading branch information
sruti1312 committed Nov 2, 2021
1 parent 184caae commit a79a451
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Developer Certificate of Origin Check

on: [pull_request]

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Get PR Commits
id: 'get-pr-commits'
uses: tim-actions/get-pr-commits@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: DCO Check
uses: tim-actions/dco@v1.1.0
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ public class ConfigOverridesIT extends PerformanceAnalyzerIntegTestBase {

@Test
public void testSimpleOverride() throws Exception {
testSimpleOverride(CONFIG_OVERRIDES_ENDPOINT);
testSimpleOverride(RestConfig.PA_BASE_URI, CONFIG_OVERRIDES_ENDPOINT);
}

@Test
public void testLegacySimpleOverride() throws Exception {
testSimpleOverride(LEGACY_OPENDISTRO_CONFIG_OVERRIDES_ENDPOINT);
testSimpleOverride(RestConfig.LEGACY_PA_BASE_URI, LEGACY_OPENDISTRO_CONFIG_OVERRIDES_ENDPOINT);
}

public void testSimpleOverride(String configOverridesEndpoint) throws Exception {
ensurePaAndRcaEnabled(configOverridesEndpoint);
public void testSimpleOverride(String paBaseUri, String configOverridesEndpoint) throws Exception {
ensurePaAndRcaEnabled(paBaseUri);
final ConfigOverrides overrides =
getOverrides(
Arrays.asList(HOT_SHARD_RCA, HOT_NODE_CLUSTER_RCA),
Expand Down Expand Up @@ -106,16 +106,16 @@ public void testSimpleOverride(String configOverridesEndpoint) throws Exception

@Test
public void testCompositeOverrides() throws Exception {
testCompositeOverrides(CONFIG_OVERRIDES_ENDPOINT);
testCompositeOverrides(RestConfig.PA_BASE_URI, CONFIG_OVERRIDES_ENDPOINT);
}

@Test
public void testLegacyCompositeOverrides() throws Exception {
testCompositeOverrides(LEGACY_OPENDISTRO_CONFIG_OVERRIDES_ENDPOINT);
testCompositeOverrides(RestConfig.LEGACY_PA_BASE_URI, LEGACY_OPENDISTRO_CONFIG_OVERRIDES_ENDPOINT);
}

public void testCompositeOverrides(String configOverridesEndpoint) throws Exception {
ensurePaAndRcaEnabled(configOverridesEndpoint);
public void testCompositeOverrides(String paBaseUri, String configOverridesEndpoint) throws Exception {
ensurePaAndRcaEnabled(paBaseUri);

final ConfigOverrides initialOverrides =
getOverrides(
Expand Down

0 comments on commit a79a451

Please sign in to comment.