Skip to content

Commit c739883

Browse files
committed
temo tests
1 parent 7c753f6 commit c739883

21 files changed

+17
-5975
lines changed

pkg/resource/launch_template/hooks.go

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License"). You may
4+
// not use this file except in compliance with the License. A copy of the
5+
// License is located at
6+
//
7+
// http://aws.amazon.com/apache2.0/
8+
//
9+
// or in the "license" file accompanying this file. This file is distributed
10+
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
// express or implied. See the License for the specific language governing
12+
// permissions and limitations under the License.
13+
114
package launch_template
215

316
import (
@@ -21,7 +34,7 @@ func (rm *resourceManager) findLaunchTemplateVersion(
2134
ko *svcapitypes.LaunchTemplate,
2235
) (err error) {
2336
rlog := ackrtlog.FromContext(ctx)
24-
exit := rlog.Trace("rm.describeLaunchTemplateVersion")
37+
exit := rlog.Trace("rm.findLaunchTemplateVersion")
2538
defer func() {
2639
exit(err)
2740
}()
@@ -690,8 +703,8 @@ func newListLaunchTemplateVersionRequestPayload(
690703
r *resource,
691704
) (*svcsdk.DescribeLaunchTemplateVersionsInput, error) {
692705
res := &svcsdk.DescribeLaunchTemplateVersionsInput{}
693-
if r.ko.Spec.Name != nil {
694-
res.LaunchTemplateName = r.ko.Spec.Name
706+
if r.ko.Status.ID != nil {
707+
res.LaunchTemplateId = r.ko.Status.ID
695708
}
696709
if r.ko.Spec.DefaultVersion != nil {
697710
res.Versions = []string{fmt.Sprintf("%d", *r.ko.Spec.DefaultVersion)}
@@ -835,7 +848,7 @@ func updateTagSpecificationsInCreateRequest(r *resource,
835848
}
836849

837850
func (rm *resourceManager) checkForMissingRequiredFields(r *resource) bool {
838-
return r.ko.Status.ID != nil
851+
return r.ko.Status.ID == nil
839852
}
840853

841854
var syncTags = tags.Sync

test/e2e/tests/test_capacity_reservation.py

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

0 commit comments

Comments
 (0)