Skip to content

Commit 37ff491

Browse files
authored
Integration test for studio (#131)
Integration test for Domain, UserProfile and App resource Added only the test files in this PR so that it's easier to review. Will rebase once everything is merged in. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 7922257 commit 37ff491

File tree

8 files changed

+413
-5
lines changed

8 files changed

+413
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2021-11-04T01:39:36Z"
2+
build_date: "2021-11-04T16:05:38Z"
33
build_hash: 4b30ff5578e2f570d1c5b1741f3098be0d78e246
44
go_version: go1.14.15
55
version: v0.15.1
6-
api_directory_checksum: 29b892915da3900404bebadaca0cfe6336dfd060
6+
api_directory_checksum: 228a128a0bc102a4d07bf8b4ea33f4dbae16bc29
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.38.11
99
generator_config_info:
10-
file_checksum: a9ce25d6cb1988f84092cad1da9ae25b416c2169
10+
file_checksum: a58e79c3530e9712ed33184bad8aa0f16426edaa
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ resources:
799799
hooks:
800800
sdk_read_one_post_set_output:
801801
code: rm.customDescribeAppSetOutput(ko)
802-
dk_delete_pre_build_request:
802+
sdk_delete_pre_build_request:
803803
template_path: app/sdk_delete_pre_build_request.go.tpl
804804
sdk_delete_post_request:
805805
template_path: common/sdk_delete_post_request.go.tpl

generator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ resources:
799799
hooks:
800800
sdk_read_one_post_set_output:
801801
code: rm.customDescribeAppSetOutput(ko)
802-
dk_delete_pre_build_request:
802+
sdk_delete_pre_build_request:
803803
template_path: app/sdk_delete_pre_build_request.go.tpl
804804
sdk_delete_post_request:
805805
template_path: common/sdk_delete_post_request.go.tpl

pkg/resource/app/sdk.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/e2e/resources/app.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: sagemaker.services.k8s.aws/v1alpha1
2+
kind: App
3+
metadata:
4+
name: default
5+
spec:
6+
appName: default
7+
appType: JupyterServer
8+
userProfileName: $USER_PROFILE_NAME
9+
domainID: $DOMAIN_ID

test/e2e/resources/domain.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: sagemaker.services.k8s.aws/v1alpha1
2+
kind: Domain
3+
metadata:
4+
name: $DOMAIN_NAME
5+
spec:
6+
domainName: $DOMAIN_NAME
7+
authMode: IAM
8+
defaultUserSettings:
9+
executionRole: $SAGEMAKER_EXECUTION_ROLE_ARN
10+
kernelGatewayAppSettings:
11+
defaultResourceSpec:
12+
instanceType: ml.t3.micro
13+
subnetIDs:
14+
- $SUBNET_ID
15+
vpcID: $VPC_ID

test/e2e/resources/user_profile.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: sagemaker.services.k8s.aws/v1alpha1
2+
kind: UserProfile
3+
metadata:
4+
name: $USER_PROFILE_NAME
5+
spec:
6+
userProfileName: $USER_PROFILE_NAME
7+
domainID: $DOMAIN_ID
8+
userSettings:
9+
kernelGatewayAppSettings:
10+
defaultResourceSpec:
11+
instanceType: ml.t3.micro

0 commit comments

Comments
 (0)