Skip to content

Commit 09d33ac

Browse files
committed
test: Add Archives integration tests (box/box-codegen#744)
1 parent bb86472 commit 09d33ac

File tree

2,417 files changed

+184875
-79377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,417 files changed

+184875
-79377
lines changed

.codegen.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "engineHash": "c34d8bf", "specHash": "c27c421", "version": "0.1.0" }

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Bug
33
about: Report a bug found in the SDK
44
title: ''
55
labels: bug
6-
assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejleszczynski
7-
6+
assignees: mwwoda, mhagmajer, arjankowski, lukaszsocha2, bartlomiejleszczynski, congminh1254
87
---
98

109
- [ ] I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
@@ -13,36 +12,42 @@ assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejlesz
1312
- [ ] I have searched [Issues in this repo][github-repo] and my issue isn't already reported.
1413

1514
### Description of the Issue
15+
1616
<!-- Replace this text with a description of what problem you're having. -->
1717
<!-- Please include as much detail as possible to help us troubleshoot! -->
1818
<!-- If it isn't obvious, please include how the behavior you expect differs from what actually happened. -->
1919
<!-- This is really important so we know how to start troubleshooting your issue. -->
2020

2121
### Steps to Reproduce
22+
2223
<!-- Please include detailed steps to reproduce the issue you're seeing, if possible. -->
2324
<!-- If you don't have a reproducible error, please make sure that you give us as much detail -->
2425
<!-- as you can about what your application was doing when the error occurred. -->
2526
<!-- Good steps to reproduce the problem help speed up debugging for us and gets your issue resolved sooner! -->
27+
2628
1. Go to '...'
2729
2. Click on '....'
2830
3. Scroll down to '....'
2931
4. See error
3032

3133
### Expected Behavior
34+
3235
<!-- What did you expect to happen? -->
3336

3437
### Error Message, Including Stack Trace
38+
3539
<!-- Share the full error output you're seeing, if applicable. -->
3640
<!-- Please include the full stack trace to help us identify where the error is happening. -->
3741

3842
### Screenshots
43+
3944
<!-- If applicable, add screenshots to help explain your problem. -->
4045

4146
### Versions Used
42-
Java SDK: <!-- Replace with the version of the Java SDK you're using. -->
43-
Java: <!-- Replace with the version of Java your application is running on. -->
4447

45-
[sdk-docs]: ./doc
48+
49+
50+
[sdk-docs]: https://github.com/box/box-java-sdk-gen/tree/main/docs
4651
[api-docs]: https://developer.box.com/docs
4752
[dev-forums]: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
48-
[github-repo]: https://github.com/box/box-java-sdk/search?type=Issues
53+
[github-repo]: https://github.com/box/box-java-sdk-gen/search?type=Issues

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: SDK documentation
4-
url: https://github.com/box/box-java-sdk/tree/main/doc
4+
url: https://github.com/box/box-java-sdk-gen/tree/main/docs
55
about: Before creating an issue, I have checked that the SDK documentation doesn't solve my issue.
66
- name: API documentation
77
url: https://developer.box.com/docs
@@ -10,5 +10,5 @@ contact_links:
1010
url: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
1111
about: Before creating an issue, I have searched the Box Developer Forums and my issue isn't already reported there.
1212
- name: Issues in this repo
13-
url: https://github.com/box/box-java-sdk/search?type=Issues
13+
url: https://github.com/box/box-java-sdk-gen/search?type=Issues
1414
about: Before creating an issue, I have searched Issues in this repo and my issue isn't already reported.

.github/ISSUE_TEMPLATE/enhancement.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@ name: Enhancement
33
about: Suggest a new feature or change
44
title: ''
55
labels: enhancement
6-
assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejleszczynski
7-
6+
assignees: mwwoda, mhagmajer, arjankowski, lukaszsocha2, bartlomiejleszczynski, congminh1254
87
---
98

109
### Is your feature request related to a problem? Please describe.
10+
1111
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
1212

1313
### Describe the solution you'd like
14+
1415
<!-- A clear and concise description of what you want to happen. -->
1516

1617
### Describe alternatives you've considered
18+
1719
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
1820

1921
### Additional context
22+
2023
<!-- Add any other context or screenshots about the feature request here. -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Question
33
about: Request for Assistance
44
title: ''
55
labels: question
6-
assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejleszczynski
7-
6+
assignees: mwwoda, mhagmajer, arjankowski, lukaszsocha2, bartlomiejleszczynski, congminh1254
87
---
98

109
- [ ] I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
@@ -13,36 +12,42 @@ assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejlesz
1312
- [ ] I have searched [Issues in this repo][github-repo] and my issue isn't already reported.
1413

1514
### Description of the Issue
15+
1616
<!-- Replace this text with a description of what problem you're having. -->
1717
<!-- Please include as much detail as possible to help us troubleshoot! -->
1818
<!-- If it isn't obvious, please include how the behavior you expect differs from what actually happened. -->
1919
<!-- This is really important so we know how to start troubleshooting your issue. -->
2020

2121
### Steps to Reproduce
22+
2223
<!-- Please include detailed steps to reproduce the issue you're seeing, if possible. -->
2324
<!-- If you don't have a reproducible error, please make sure that you give us as much detail -->
2425
<!-- as you can about what your application was doing when the error occurred. -->
2526
<!-- Good steps to reproduce the problem help speed up debugging for us and gets your issue resolved sooner! -->
27+
2628
1. Go to '...'
2729
2. Click on '....'
2830
3. Scroll down to '....'
2931
4. See error
3032

3133
### Expected Behavior
34+
3235
<!-- What did you expect to happen? -->
3336

3437
### Error Message, Including Stack Trace
38+
3539
<!-- Share the full error output you're seeing, if applicable. -->
3640
<!-- Please include the full stack trace to help us identify where the error is happening. -->
3741

3842
### Screenshots
43+
3944
<!-- If applicable, add screenshots to help explain your problem. -->
4045

4146
### Versions Used
42-
Java SDK: <!-- Replace with the version of the Java SDK you're using. -->
43-
Java: <!-- Replace with the version of Java your application is running on. -->
4447

45-
[sdk-docs]: ./doc
48+
49+
50+
[sdk-docs]: https://github.com/box/box-java-sdk-gen/tree/main/docs
4651
[api-docs]: https://developer.box.com/docs
4752
[dev-forums]: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
48-
[github-repo]: https://github.com/box/box-java-sdk/search?type=Issues
53+
[github-repo]: https://github.com/box/box-java-sdk-gen/search?type=Issues

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ markComment: >
1919
2020
# Comment to post when closing a stale issue. Set to `false` to disable
2121
closeComment: >
22-
This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box Java SDK and feel free to open another PR/issue at any time.
22+
This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box SDK and feel free to open another PR/issue at any time.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Autoupdate PR
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
update_pull_requests:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
with:
15+
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
16+
17+
- name: Set up Git
18+
run: |
19+
git config --global user.name 'box-sdk-build'
20+
git config --global user.email '[email protected]'
21+
22+
- name: Fetch all branches and tags
23+
run: git fetch --prune --unshallow
24+
25+
- name: Auto update pull requests
26+
run: |
27+
PR_LIST=$(curl -s -H "Authorization: Bearer ${{ secrets.DISPATCH_ACCESS_TOKEN }}" "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open" | jq -r '.[] | .head.ref')
28+
for pr_branch in $PR_LIST; do
29+
git checkout "$pr_branch"
30+
if git merge origin/main; then
31+
git push
32+
else
33+
# Conflict occurred, resolve by keeping our changes
34+
git checkout --ours .
35+
git add .
36+
git commit -m "Auto resolve conflict by keeping our changes"
37+
git push
38+
fi
39+
done

.github/workflows/build-main.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: build
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
push:
6+
branches:
7+
- main
8+
jobs:
9+
build-and-test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
max-parallel: 1
13+
matrix:
14+
distribution: ['zulu', 'temurin']
15+
java: ['8', '17']
16+
name: Java ${{ matrix.java }} (${{ matrix.distribution }})
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Setup Java
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: ${{ matrix.distribution }}
24+
java-version: ${{ matrix.java }}
25+
cache: 'gradle'
26+
- name: Build and test
27+
env:
28+
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
29+
ADMIN_USER_ID: ${{ secrets.ADMIN_USER_ID }}
30+
CLIENT_ID: ${{ secrets.CLIENT_ID }}
31+
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
32+
USER_ID: ${{ secrets.USER_ID }}
33+
ENTERPRISE_ID: ${{ secrets.ENTERPRISE_ID }}
34+
BOX_FILE_REQUEST_ID: ${{ secrets.BOX_FILE_REQUEST_ID }}
35+
BOX_EXTERNAL_USER_EMAIL: ${{ secrets.BOX_EXTERNAL_USER_EMAIL }}
36+
APP_ITEM_ASSOCIATION_FILE_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FILE_ID }}
37+
APP_ITEM_ASSOCIATION_FOLDER_ID: ${{ secrets.APP_ITEM_ASSOCIATION_FOLDER_ID }}
38+
WORKFLOW_FOLDER_ID: ${{ secrets.WORKFLOW_FOLDER_ID }}
39+
APP_ITEM_SHARED_LINK: ${{ secrets.APP_ITEM_SHARED_LINK }}
40+
SLACK_AUTOMATION_USER_ID: ${{ secrets.SLACK_AUTOMATION_USER_ID }}
41+
SLACK_ORG_ID: ${{ secrets.SLACK_ORG_ID }}
42+
SLACK_PARTNER_ITEM_ID: ${{ secrets.SLACK_PARTNER_ITEM_ID }}
43+
run: ./gradlew check --stacktrace
44+
45+
- name: Coverage
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
run: ./gradlew jacocoTestReport coverallsJacoco

.github/workflows/integration-tests.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)