Skip to content

Commit

Permalink
Regression test for Config.of (#626)
Browse files Browse the repository at this point in the history
- guard against removal of a method used by codegen
  • Loading branch information
pawelprazak committed Jun 23, 2023
1 parent 1e2e78c commit c81858b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@ void testConfigUsage() {
assertThat(extractValue(projectConfig.getSecret("secret"))).hasValue("a secret");
assertThat(awsConfig.get("region")).hasValue("us-east-1");
}

@Test
void testCodegenUsage() {
// just reference the Codegen version to prevent
// removal of the deprecated method while provider
// codegen still depends on it
com.pulumi.Config.of("aws");
}
}

0 comments on commit c81858b

Please sign in to comment.