Skip to content
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

DD-593 integration test fixes multi license #116

Conversation

mderuijter
Copy link

Running an Integration Test on our dd-dtap env:
source (Getting Set Up to Run REST Assured Tests)

Had a hard time installing the right Maven version on Centos 8 so i forwarded port 8080 to my localhost instead (VirtualBox -> Settings -> Network(advanced) -> Port Forwarding):
image

# make sure there are no :BlockedApiEndpoints for this to work, I deleted both :BlockedApiEndpoints and :BlockedApiPolicy from the database directly

# mysteriously needed according to docs
curl -X PUT -d 'burrito' http://localhost:8080/api/admin/settings/BuiltinUsers.KEY

curl -s -X POST -H "Content-type:application/json" -d "{\"assignee\": \":authenticated-users\",\"role\": \"fullContributor\"}" "http://localhost:8080/api/dataverses/root/assignments?key=$(apikey)"

# change directory to local dataverse to run test
mvn test -Dtest=AdminIT -Ddataverse.test.baseurl='http://localhost:8080'

# run the full IT suite:
mvn test -Dtest=DataversesIT,DatasetsIT,SwordIT,AdminIT,BuiltinUsersIT,UsersIT,UtilIT,ConfirmEmailIT,FileMetadataIT,FilesIT,SearchIT,InReviewWorkflowIT,HarvestingServerIT,MoveIT,MakeDataCountApiIT,FileTypeDetectionIT,EditDDIIT,ExternalToolsIT,AccessIT,DuplicateFilesIT,DownloadFilesIT,LinkIT,DeleteUsersIT,DeactivateUsersIT,AuxiliaryFilesIT -Ddataverse.test.baseurl='http://localhost:8080'

@janvanmansum janvanmansum merged commit 06c8574 into DANS-KNAW:multi-license Sep 15, 2021
PaulBoon pushed a commit that referenced this pull request Aug 21, 2023
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.

2 participants