mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 19:25:52 +08:00
This commit: 1. Restores --tls_plugin as a way to provide the path to the TLS plugin when running in simulation. 2. Removes the TLS Plugin as being required for 5% of tests. 3. Standardizes on 'sslEnabled' as a variable name. And is a fix/improvement upon commit f7733d1b. (1) previously didn't work, because we would create multiple new TLSOptions instances and run init_plugin multiple times. Only the first call would use the argument specified on the command line. To fix this, the TLSOptions derived from the command line is threaded through all the simulation code that needs it. (2) was an oversight in f7733d1b, which didn't actually make "should we be TLS" dependant on if the TLS plugin was available or not. (3) is just nice for trying to grep around in the codebase.
30 lines
1002 B
C++
30 lines
1002 B
C++
/*
|
|
* SimulatedCluster.h
|
|
*
|
|
* This source file is part of the FoundationDB open source project
|
|
*
|
|
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#include "fdbrpc/TLSConnection.h"
|
|
|
|
#ifndef FDBSERVER_SIMULATEDCLUSTER_H
|
|
#define FDBSERVER_SIMULATEDCLUSTER_H
|
|
#pragma once
|
|
|
|
void setupAndRun(std::string const& dataFolder, const char* const& testFile, bool const& rebooting, Reference<TLSOptions> const& useSSL);
|
|
|
|
#endif
|