Skip to content

Commit

Permalink
import config file auth fail (#8844)
Browse files Browse the repository at this point in the history
* import config file auth fail

* run ci

* run ci2
  • Loading branch information
chenhao26-nineteen authored Aug 1, 2022
1 parent 5a9b1e9 commit de5ec35
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public class AbstractNamingClientProxyTest {
@Mock
private SecurityProxy sc;

/**
* test get security headers for accessToken.
*/
@Test
public void testGetSecurityHeadersForAccessToken() {
AbstractNamingClientProxy proxy = new MockNamingClientProxy(sc);
Expand All @@ -64,6 +67,10 @@ public void testGetSecurityHeadersForAccessToken() {
Assert.assertEquals(AppNameUtils.getAppName(), securityHeaders.get("app"));
}

/**
* get security headers for ram.
* @throws Exception exception
*/
@Test
public void testGetSecurityHeadersForRam() throws Exception {
String ak = "aa";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ class ConfigurationManagement extends React.Component {
accept: 'application/zip',
action: `v1/cs/configs?import=true&namespace=${getParams(
'namespace'
)}&accessToken=${accessToken}&username=${username}`,
)}&accessToken=${accessToken}&username=${username}&tenant=${getParams('namespace')}`,
headers: Object.assign({}, {}, { accessToken }),
data: {
policy: self.field.getValue('sameConfigPolicy'),
Expand Down
4 changes: 2 additions & 2 deletions console/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
<!-- 第三方css结束 -->
<link href="./css/main.css?63e21d02ece6640bf812" rel="stylesheet"></head>
<link href="./css/main.css?7cef8a6da66307e01c69" rel="stylesheet"></head>

<body>
<div id="root" style="overflow:hidden"></div>
Expand All @@ -56,6 +56,6 @@
<script src="console-ui/public/js/merge.js"></script>
<script src="console-ui/public/js/loader.js"></script>
<!-- 第三方js结束 -->
<script type="text/javascript" src="./js/main.js?63e21d02ece6640bf812"></script></body>
<script type="text/javascript" src="./js/main.js?7cef8a6da66307e01c69"></script></body>

</html>
Loading

0 comments on commit de5ec35

Please sign in to comment.