I made the changes and got the REST tests to pass, I also ran two sets of 
JMeter tests. I got errors running the accel jmeter tests on both branches.

## MASTER

mvn -Ploadtest-fortress jmeter:jmeter

[info] summary =  50000 in    59s =  853.3/s Avg:     7 Min:     0 Max:   220 
Err:     0 (0.00%)

mvn -Ploadtest-fortress-createsess jmeter:jmeter

[info] summary =  10000 in    62s =  161.2/s Avg:    56 Min:     4 Max:   311 
Err:     0 (0.00%)

mvn -Ploadtest-fortress-sessperms jmeter:jmeter

[info] summary =    500 in   7.3s =   68.6/s Avg:    27 Min:     3 Max:   186 
Err:     0 (0.00%)



## MODIFY BOOTSTRAP

mvn -Ploadtest-fortress jmeter:jmeter

[info] summary =  50000 in    60s =  834.9/s Avg:     8 Min:     0 Max:   375 
Err:     0 (0.00%)

mvn -Ploadtest-fortress-createsess jmeter:jmeter

[info] summary =  10000 in  60.3s =  165.9/s Avg:    54 Min:     5 Max:   219 
Err:     0 (0.00%)

mvn -Ploadtest-fortress-sessperms jmeter:jmeter

[info] summary =    500 in   8.1s =   61.8/s Avg:    13 Min:     3 Max:    77 
Err:     0 (0.00%)


~Chris



----- Original Message -----
From: "Chris Pike" <[email protected]>
To: [email protected]
Sent: Wednesday, May 4, 2016 2:00:11 PM
Subject: Re: Static Config Initialization Problems

Great, thanks, do you want me to make the change? 

I noticed that the IS_REST flag gets loaded in the external config, so I'll 
change that too.

I also see that version is a system property???


----- Original Message -----
From: "Shawn McKinney" <[email protected]>
To: [email protected]
Sent: Wednesday, May 4, 2016 1:49:22 PM
Subject: Re: Static Config Initialization Problems

> On May 4, 2016, at 8:30 AM, Shawn McKinney <[email protected]> wrote:
> 
> which initialized in the 
>    private void init()
> 
> during instance construction.  Not sure what the problem is, it should work.  
> Looking in the debugger atm….


OK, figured it out.  Code needs to change just a little bit more...  

Simply declare all the member variables here:
public class RestUtils
{
    private String HTTP_PW;
    private String HTTP_HOST;
    private String HTTP_PORT;
    private String HTTP_PROTOCOL;
    private String VERSION;
    private String SERVICE;
    private String URI;

and then load all their values later inside the init method:
    private void init()
    {
        HTTP_UID = Config.getInstance().getProperty( "http.user" );
        HTTP_PW = ( ( EncryptUtil.isEnabled() ) ? 
EncryptUtil.getInstance().decrypt( Config
                        .getInstance().getProperty( HTTP_PW_PARAM ) ) : 
Config.getInstance().getProperty( HTTP_PW_PARAM ) );
        HTTP_HOST = Config.getInstance().getProperty( "http.host" );
        HTTP_PORT = Config.getInstance().getProperty( "http.port" );
        HTTP_PROTOCOL = Config.getInstance().getProperty( "http.protocol", 
"http" );
        VERSION = System.getProperty( "version" );
        SERVICE = "fortress-rest-" + VERSION;
        URI = HTTP_PROTOCOL + "://" + HTTP_HOST + ":" + HTTP_PORT + "/" + 
SERVICE + "/";

which gets us past the junit test failures.  

There is minor tweak that must be made to the realm to go along with this.  The 
fortress rest is good but haven’t test the web component yet.  I think we’re 
getting close.  Also still need to run the jmeter tests of before / after to 
make sure we haven’t slowed anything down.  I don’t think so but you never know.

Thanks,
Shawn

Reply via email to