PRDONE-94: updates from code review feedback added .env test

This commit is contained in:
Tim Chamberlain
2022-09-06 11:41:25 -05:00
parent 12925127b2
commit 31e6bf4d49
10 changed files with 26 additions and 0 deletions

View File

@ -29,6 +29,7 @@ import com.kingsrook.qqq.backend.core.model.session.QSession;
/*******************************************************************************
** Base class for rendering qqq dashboard widgets
**
*******************************************************************************/
public abstract class AbstractWidgetRenderer

View File

@ -39,10 +39,12 @@ import software.amazon.awssdk.services.quicksight.model.RegisteredUserEmbeddingE
/*******************************************************************************
** Widget implementation for amazon QuickSight charts
**
*******************************************************************************/
public class QuickSightChartRenderer extends AbstractWidgetRenderer
{
/*******************************************************************************
**
*******************************************************************************/

View File

@ -30,6 +30,7 @@ import com.kingsrook.qqq.backend.core.model.session.QSession;
/*******************************************************************************
** Class for loading widget implementation code and rendering of widgets
**
*******************************************************************************/
public class WidgetDataLoader

View File

@ -26,6 +26,7 @@ import java.util.List;
/*******************************************************************************
** Model containing datastructure expected by frontend material dashboard bar chart widget
**
*******************************************************************************/
public class BarChart implements QWidget

View File

@ -23,6 +23,7 @@ package com.kingsrook.qqq.backend.core.model.dashboard.widgets;
/*******************************************************************************
** Interface for frontend material dashboard widget's datastructures
**
*******************************************************************************/
public interface QWidget

View File

@ -23,6 +23,8 @@ package com.kingsrook.qqq.backend.core.model.dashboard.widgets;
/*******************************************************************************
** Model containing datastructure expected by frontend material dashboard
** AWS quick sight widget
**
*******************************************************************************/
public class QuickSightChart implements QWidget

View File

@ -26,6 +26,7 @@ import com.kingsrook.qqq.backend.core.model.metadata.code.QCodeReference;
/*******************************************************************************
** Base metadata for frontend material dashboard widgets
**
*******************************************************************************/
public class QWidgetMetaData implements QWidgetMetaDataInterface

View File

@ -26,6 +26,7 @@ import com.kingsrook.qqq.backend.core.model.metadata.code.QCodeReference;
/*******************************************************************************
** Interface for qqq widget meta data
**
*******************************************************************************/
public interface QWidgetMetaDataInterface

View File

@ -26,6 +26,7 @@ import java.util.Collection;
/*******************************************************************************
** AWS Quicksite specific meta data for frontend material dashboard widget
**
*******************************************************************************/
public class QuickSightChartMetaData extends QWidgetMetaData implements QWidgetMetaDataInterface

View File

@ -113,6 +113,21 @@ class QMetaDataVariableInterpreterTest
/*******************************************************************************
**
*******************************************************************************/
@Test
void testDotEnvFile()
{
QMetaDataVariableInterpreter secretReader = new QMetaDataVariableInterpreter();
String key = "CUSTOM_PROPERTY";
String value = "ABCD-9876";
assertNull(secretReader.interpret("${env.NOT-" + key + "}"));
assertEquals(value, secretReader.interpret("${env." + key + "}"));
}
/*******************************************************************************
**
*******************************************************************************/