-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #618 from authorjapps/ISSUE-603_masked_secrets
ISSUES-603 Secrets not logged but used for API executions
- Loading branch information
Showing
12 changed files
with
285 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
.../src/test/java/org/jsmart/zerocode/integrationtests/masked/MaskedSecretsInMemoryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.jsmart.zerocode.integrationtests.masked; | ||
|
||
import org.jsmart.zerocode.core.domain.HostProperties; | ||
import org.jsmart.zerocode.core.domain.Scenario; | ||
import org.jsmart.zerocode.core.tests.customrunner.TestOnlyZeroCodeUnitRunner; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
@HostProperties(host="http://localhost", port=9998, context = "") | ||
@RunWith(TestOnlyZeroCodeUnitRunner.class) | ||
public class MaskedSecretsInMemoryTest { | ||
|
||
/** | ||
* Mock end points are in test/resources: simulators/test_purpose_end_points.json. | ||
* @RunWith(TestOnlyZeroCodeUnitRunner.class) : starts these mocks first before running the tests | ||
*/ | ||
|
||
@Test | ||
@Scenario("integration_test_files/masked/password_or_secrets_masked_in_log_n_console.json") | ||
public void testSecretPrinted_masked() throws Exception { | ||
} | ||
|
||
@Test | ||
@Scenario("integration_test_files/masked/bearer_token_or_secret_masked_reuse_example_.json") | ||
public void testSecretPrintedAssertions_masked() throws Exception { | ||
|
||
} | ||
|
||
} | ||
|
||
|
||
|
Oops, something went wrong.