File tree Expand file tree Collapse file tree 9 files changed +11
-10
lines changed
AWSLambdaRuntimeCoreTests Expand file tree Collapse file tree 9 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- import NIOCore
16
- import NIOPosix
17
15
import NIOConcurrencyHelpers
16
+ import NIOCore
18
17
import NIOHTTP1
18
+ import NIOPosix
19
19
20
20
/// A barebone HTTP client to interact with AWS Runtime Engine which is an HTTP server.
21
21
/// Note that Lambda Runtime API dictate that only one requests runs at a time.
Original file line number Diff line number Diff line change 15
15
#if DEBUG
16
16
import Dispatch
17
17
import Logging
18
- import NIOCore
19
- import NIOPosix
20
18
import NIOConcurrencyHelpers
19
+ import NIOCore
21
20
import NIOHTTP1
21
+ import NIOPosix
22
22
23
23
// This functionality is designed for local testing hence beind a #if DEBUG flag.
24
24
// For example:
Original file line number Diff line number Diff line change 13
13
//===----------------------------------------------------------------------===//
14
14
15
15
import Logging
16
- import NIOCore
17
16
import NIOConcurrencyHelpers
17
+ import NIOCore
18
18
19
19
extension Lambda {
20
20
/// `Lifecycle` manages the Lambda process lifecycle.
Original file line number Diff line number Diff line change 13
13
//===----------------------------------------------------------------------===//
14
14
15
15
import Dispatch
16
+ import NIOPosix
16
17
17
18
internal enum Consts {
18
19
static let apiPrefix = " /2018-06-01 "
Original file line number Diff line number Diff line change 14
14
15
15
import Foundation
16
16
import NIOCore
17
- import NIOPosix
18
17
import NIOHTTP1
18
+ import NIOPosix
19
19
20
20
internal struct MockServer {
21
21
private let group : EventLoopGroup
Original file line number Diff line number Diff line change 15
15
@testable import AWSLambdaRuntimeCore
16
16
import Logging
17
17
import NIOCore
18
- import NIOPosix
19
18
import NIOHTTP1
19
+ import NIOPosix
20
20
import XCTest
21
21
22
22
class LambdaLifecycleTest : XCTestCase {
Original file line number Diff line number Diff line change 15
15
@testable import AWSLambdaRuntimeCore
16
16
import Logging
17
17
import NIOCore
18
- import NIOPosix
19
18
import NIOFoundationCompat
20
19
import NIOHTTP1
20
+ import NIOPosix
21
21
import NIOTestUtils
22
22
import XCTest
23
23
Original file line number Diff line number Diff line change 16
16
import Foundation // for JSON
17
17
import Logging
18
18
import NIOCore
19
- import NIOPosix
20
19
import NIOHTTP1
20
+ import NIOPosix
21
21
22
22
internal final class MockLambdaServer {
23
23
private let logger = Logger ( label: " MockLambdaServer " )
Original file line number Diff line number Diff line change 16
16
@testable import AWSLambdaRuntimeCore
17
17
import Logging
18
18
import NIOCore
19
- import NIOPosix
20
19
import NIOFoundationCompat
20
+ import NIOPosix
21
21
import XCTest
22
22
23
23
class CodableLambdaTest : XCTestCase {
You can’t perform that action at this time.
0 commit comments