File tree Expand file tree Collapse file tree 4 files changed +19
-15
lines changed
tests/integ/sagemaker/lineage Expand file tree Collapse file tree 4 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ def test_tag(action_obj, sagemaker_session):
90
90
)["Tags" ]
91
91
if actual_tags :
92
92
break
93
- # When sagemaker-client-config endpoint-url is passed as argument to hit beta ,
94
- # length of actual tags will be 2
93
+ # When sagemaker-client-config endpoint-url is passed as argument to hit some endpoints ,
94
+ # length of actual tags will be greater than 1
95
95
assert len (actual_tags ) > 0
96
96
assert actual_tags [0 ] == tag
97
97
@@ -106,7 +106,7 @@ def test_tags(action_obj, sagemaker_session):
106
106
)["Tags" ]
107
107
if actual_tags :
108
108
break
109
- # When sagemaker-client-config endpoint-url is passed as argument to hit beta ,
110
- # length of actual tags will be 2
109
+ # When sagemaker-client-config endpoint-url is passed as argument to hit some endpoints ,
110
+ # length of actual tags will be greater than 1
111
111
assert len (actual_tags ) > 0
112
112
assert [actual_tags [- 1 ]] == tags
Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ def test_tag(artifact_obj, sagemaker_session):
121
121
)["Tags" ]
122
122
if actual_tags :
123
123
break
124
- # When sagemaker-client-config endpoint-url is passed as argument to hit beta ,
125
- # length of actual tags will be 2
124
+ # When sagemaker-client-config endpoint-url is passed as argument to hit some endpoints ,
125
+ # length of actual tags will be greater than 1
126
126
assert len (actual_tags ) > 0
127
127
assert actual_tags [0 ] == tag
128
128
@@ -137,7 +137,7 @@ def test_tags(artifact_obj, sagemaker_session):
137
137
)["Tags" ]
138
138
if actual_tags :
139
139
break
140
- # When sagemaker-client-config endpoint-url is passed as argument to hit beta ,
141
- # length of actual tags will be 2
140
+ # When sagemaker-client-config endpoint-url is passed as argument to hit some endpoints ,
141
+ # length of actual tags will be greater than 1
142
142
assert len (actual_tags ) > 0
143
143
assert [actual_tags [- 1 ]] == tags
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ def test_set_tag(association_obj, sagemaker_session):
66
66
if actual_tags :
67
67
break
68
68
time .sleep (1 )
69
- assert len (actual_tags ) == 1
69
+ # When sagemaker-client-config endpoint-url is passed as argument to hit some endpoints,
70
+ # length of actual tags will be greater than 1
71
+ assert len (actual_tags ) > 0
70
72
assert actual_tags [0 ] == tag
71
73
72
74
@@ -81,5 +83,7 @@ def test_tags(association_obj, sagemaker_session):
81
83
if actual_tags :
82
84
break
83
85
time .sleep (1 )
84
- assert len (actual_tags ) == 1
85
- assert actual_tags == tags
86
+ # When sagemaker-client-config endpoint-url is passed as argument to hit some endpoints,
87
+ # length of actual tags will be greater than 1
88
+ assert len (actual_tags ) > 0
89
+ assert [actual_tags [- 1 ]] == tags
Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ def test_tag(context_obj, sagemaker_session):
88
88
)["Tags" ]
89
89
if actual_tags :
90
90
break
91
- # When sagemaker-client-config endpoint-url is passed as argument to hit beta ,
92
- # length of actual tags will be 2
91
+ # When sagemaker-client-config endpoint-url is passed as argument to hit some endpoints ,
92
+ # length of actual tags will be greater than 1
93
93
assert len (actual_tags ) > 0
94
94
assert actual_tags [0 ] == tag
95
95
@@ -104,7 +104,7 @@ def test_tags(context_obj, sagemaker_session):
104
104
)["Tags" ]
105
105
if actual_tags :
106
106
break
107
- # When sagemaker-client-config endpoint-url is passed as argument to hit beta ,
108
- # length of actual tags will be 2
107
+ # When sagemaker-client-config endpoint-url is passed as argument to hit some endpoints ,
108
+ # length of actual tags will be greater than 1
109
109
assert len (actual_tags ) > 0
110
110
assert [actual_tags [- 1 ]] == tags
You can’t perform that action at this time.
0 commit comments