mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
PRDONE-94: updates from code review feedback added .env test
This commit is contained in:
@ -29,6 +29,7 @@ import com.kingsrook.qqq.backend.core.model.session.QSession;
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Base class for rendering qqq dashboard widgets
|
||||
**
|
||||
*******************************************************************************/
|
||||
public abstract class AbstractWidgetRenderer
|
||||
|
@ -39,10 +39,12 @@ import software.amazon.awssdk.services.quicksight.model.RegisteredUserEmbeddingE
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Widget implementation for amazon QuickSight charts
|
||||
**
|
||||
*******************************************************************************/
|
||||
public class QuickSightChartRenderer extends AbstractWidgetRenderer
|
||||
{
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
|
@ -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
|
||||
|
@ -26,6 +26,7 @@ import java.util.List;
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Model containing datastructure expected by frontend material dashboard bar chart widget
|
||||
**
|
||||
*******************************************************************************/
|
||||
public class BarChart implements QWidget
|
||||
|
@ -23,6 +23,7 @@ package com.kingsrook.qqq.backend.core.model.dashboard.widgets;
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Interface for frontend material dashboard widget's datastructures
|
||||
**
|
||||
*******************************************************************************/
|
||||
public interface QWidget
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -26,6 +26,7 @@ import com.kingsrook.qqq.backend.core.model.metadata.code.QCodeReference;
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** Interface for qqq widget meta data
|
||||
**
|
||||
*******************************************************************************/
|
||||
public interface QWidgetMetaDataInterface
|
||||
|
@ -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
|
||||
|
@ -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 + "}"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
|
Reference in New Issue
Block a user