Skip to content

Commit 4b96605

Browse files
committed
Merge branch 'owls-109200' into 'main'
Remove passwords from demo code See merge request weblogic-cloud/weblogic-monitoring-exporter!291
2 parents 5d669eb + 9230089 commit 4b96605

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

wls-exporter-core/src/test/java/com/oracle/wls/exporter/DemoInputs.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ private DemoInputs() {
1616
static final String YAML_STRING = "---\n" +
1717
"startDelaySeconds: 5\n" +
1818
"username: system\n" +
19-
"password: gumby1234\n" +
2019
"\n" +
2120
"queries:\n" +
2221
"- serverRuntimes:\n" +
@@ -39,7 +38,6 @@ private DemoInputs() {
3938
static final String YAML_STRING2 = "---\n" +
4039
"startDelaySeconds: 5\n" +
4140
"username: system\n" +
42-
"password: gumby1234\n" +
4341
"queries:\n" +
4442
"- applicationRuntimes:\n" +
4543
" key: name\n" +

wls-exporter-core/src/test/java/com/oracle/wls/exporter/YamlDemo.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, 2021, Oracle and/or its affiliates.
1+
// Copyright (c) 2017, 2023, Oracle and/or its affiliates.
22
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
package com.oracle.wls.exporter;
@@ -11,17 +11,15 @@
1111
import com.oracle.wls.exporter.domain.MBeanSelector;
1212

1313
import static com.google.gson.JsonParser.parseString;
14-
import static com.oracle.wls.exporter.DemoInputs.RESPONSE;
15-
import static com.oracle.wls.exporter.DemoInputs.YAML_STRING3;
16-
import static com.oracle.wls.exporter.DemoInputs.compressedJsonForm;
14+
import static com.oracle.wls.exporter.DemoInputs.*;
1715

1816
/**
1917
* @author Russell Gold
2018
*/
2119
public class YamlDemo {
2220

2321
public static void main(String... args) throws IOException {
24-
String yamlString = YAML_STRING3;
22+
String yamlString = YAML_STRING;
2523
System.out.println("The following configuration:\n" + yamlString);
2624
ExporterConfig exporterConfig = ExporterConfig.loadConfig(new ByteArrayInputStream(yamlString.getBytes()));
2725

0 commit comments

Comments
 (0)