2022-12-20 11:23:09 -05:00
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
2023-03-01 15:59:42 -05:00
/*
* Test types are indicated by the test label ending.
*
* _1_ Requires credentials, permissions, and AWS resources.
* _2_ Requires credentials and permissions.
* _3_ Does not require credentials.
*
*/
2022-12-20 11:23:09 -05:00
# include <gtest/gtest.h>
# include <fstream>
# include "dynamodb_gtests.h"
# include "dynamodb_samples.h"
namespace AwsDocTest {
// NOLINTNEXTLINE (readability-named-parameter)
2023-03-01 15:59:42 -05:00
TEST_F ( DynamoDB_GTests , update_table_2_ ) {
2022-12-20 11:23:09 -05:00
bool result = createSimpleTable ( ) ;
ASSERT_TRUE ( result ) < < preconditionError ( ) ;
result = AwsDoc : : DynamoDB : : updateTable ( SIMPLE_TABLE_NAME , 7 , 7 ,
* s_clientConfig ) ;
ASSERT_TRUE ( result ) ;
}
} // AwsDocTest