-
Notifications
You must be signed in to change notification settings - Fork 215
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 #1185 from akto-api-security/develop
Develop
- Loading branch information
Showing
16 changed files
with
279 additions
and
24 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
16 changes: 16 additions & 0 deletions
16
...ashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/SingleTestRunPage/style.css
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 |
---|---|---|
@@ -1,3 +1,19 @@ | ||
.filterClass .Polaris-Filters__FiltersWrapper { | ||
border-bottom:0 | ||
} | ||
|
||
.div-link{ | ||
cursor: pointer; | ||
} | ||
.div-link:hover{ | ||
border-bottom: 1px solid #B98900; | ||
} | ||
|
||
.banner-wrapper .Polaris-Banner--withinContentContainer{ | ||
border-radius: 0px !important; | ||
border: unset !important; | ||
} | ||
|
||
.banner-wrapper .Polaris-Banner--statusCritical { | ||
background-color: #FFF4F4 !important; | ||
} |
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
43 changes: 43 additions & 0 deletions
43
apps/testing/src/main/java/com/akto/rules/RequiredConfigs.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,43 @@ | ||
package com.akto.rules; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import com.akto.dao.testing.TestRolesDao; | ||
import com.akto.dto.testing.TestRoles; | ||
import com.mongodb.client.model.Filters; | ||
import com.mongodb.client.model.Projections; | ||
|
||
public class RequiredConfigs { | ||
|
||
private static final RequiredConfigs requiredConfigs = new RequiredConfigs(); | ||
|
||
public static RequiredConfigs getRequiredConfigs() { | ||
return requiredConfigs; | ||
} | ||
|
||
private static List<TestRoles> testRolesList = new ArrayList<>(); | ||
|
||
private static final Map<String,Boolean> validRolesExist = new HashMap<>(); | ||
|
||
public static void initiate() { | ||
validRolesExist.clear(); | ||
testRolesList = TestRolesDao.instance.findAll( | ||
Filters.empty(), | ||
Projections.fields( | ||
Projections.include(TestRoles.NAME) | ||
) | ||
); | ||
for(TestRoles role: testRolesList){ | ||
validRolesExist.put(role.getName(), true); | ||
} | ||
} | ||
|
||
public static Map<String,Boolean> getCurrentConfigsMap(){ | ||
return validRolesExist; | ||
} | ||
|
||
} | ||
|
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
Oops, something went wrong.