-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enterprise tests exist for Java client library #30
Conversation
test.sh
Outdated
@@ -18,18 +23,66 @@ function main() { | |||
runHTTPSTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finish
should probably be called at the end of this to tear down the OSS containers
df9d76b
to
f04bf89
Compare
test.sh
Outdated
echo '------------------------------------------------------------' | ||
docker-compose down -v | ||
function main() { | ||
# runOSS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be uncommented before merging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sigalsax left some comments here. since the code wasn't fully done yet, it should have been opened as "draft" next time.
docker-compose.yml
Outdated
- "8080:80" | ||
- "8443:443" | ||
- "8080:80" | ||
- "8443:443" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should try using ports >1024 (8080 and 8443 can be fine here) for local bindings as we talked on Slack (https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there another port commonly used port I could use (instead of 8443)? B/c running the scripts together, causes a conflict b/c nginx also needs 8443.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If not, I could just tear down the containers after every suite of tests run
docker-compose.yml
Outdated
cuke-master: | ||
image: registry2.itci.conjur.net/conjur-appliance-cuke-master:5.0-stable | ||
ports: | ||
- "443:443" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto on ports needing probably to be over 1024
test.sh
Outdated
@@ -57,7 +144,7 @@ function loadTestPolicy() { | |||
/bin/bash -c "conjur policy load root /tmp/test-policy/root.yml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as elsewhere: is wrapping a command in bash -c
needed?
ecdf7be
to
06afe13
Compare
22c173e
to
a04a920
Compare
1a666c7
to
71e7f8e
Compare
This adds enterprise containers and enterprise tests and updates configurations and versioning
4c0b15a
to
40a821a
Compare
I am going to go back and separately create a CONTRIBUTING.md much like we do for the secretless repo |
Previously, a new keystore was (unintentionally) being created but the default keystore was not being updated so there was no way of knowing where to grab the cert. This fixes the path issue
40a821a
to
f332619
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sigalsax Just a few more comments but it's looking much better!
echo 'Removing test environment' | ||
echo '------------------------------------------------------------' | ||
docker-compose down -v | ||
function main() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't see cleanup before the start of the tests
test.sh
Outdated
} | ||
|
||
# Run DAP Enterprise test suite | ||
function runDAP() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally didn't notice this before and you don't have to fix it for this PR but Bash function names use camel_case
captialization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it (:
test.sh
Outdated
docker exec ${dap_client_cid} /bin/bash -c "$exec_command" | ||
|
||
echo "convert pem to der file and copy it to share memory" | ||
convert_command="openssl x509 -outform der -in /root/conjur-cucumber.pem -out /test-cert/conjur-cucumber.der" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to split this command into multiple lines as well since it's too long
|
||
echo "convert pem to der file and copy it to share memory" | ||
convert_command="openssl x509 -outform der -in /root/conjur-cucumber.pem -out /test-cert/conjur-cucumber.der" | ||
docker exec ${dap_client_cid} ${convert_command} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still relevant for the new code added - don't worry about the old code unless you want to fix that up too.
5e81daf
to
b232a34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sigalsax LGTM!
Currently, the Java Client tests against the OSS, but not for Enterprise (DAP). This PR adds tests that run against the appliance (EE/DAP).
Connected to #29