Skip to content

Conversation

@bon000
Copy link
Contributor

@bon000 bon000 commented Nov 4, 2022

No description provided.

}
return NON_MOCK_CONSTRAINT + " " + securitySuffix;
}
return MOCK_CONSTRAINT;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this in an else

// DO NOT BLINDLY COPY PASTE THIS. The SEC:INSECURE part does what it sounds like: turns off security for convenience
// when unit testing and developing.
//
// Obviously in a real app you'd not use SEC:INSECURE, however this makes the sample work in simulation mode.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is now out of date

return mock_constraint;
String mode = System.getProperty("enclaveMode").toLowerCase();

if (mode == null || !mode.toLowerCase().equals("mock")) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also buggy. Will fix on Monday. But I can't get an environment setup for this test in 1.8, this is a real concern.

@shamsasari
Copy link
Contributor

I don't think this PR is needed anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants