@@ -0,0 +1,1580 @@
+/*%0A * Copyright 2000-2017 JetBrains s.r.o.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.intellij.plugins.hcl.terraform.config.codeinsight;%0A%0Apublic class TFBackendCompletionTestCase extends TFBaseCompletionTestCase %7B%0A  public void testTerraformBlockAdvised() throws Exception %7B%0A    doBasicCompletionTest(%22%3Ccaret%3E%22, %22terraform%22);%0A    doBasicCompletionTest(%22t%3Ccaret%3E%22, %22terraform%22);%0A  %7D%0A%0A  public void testBackendAllowedInTerraform() throws Exception %7B%0A    doBasicCompletionTest(%22terraform%7B%3Ccaret%3E%7D%22, %22backend%22);%0A    doBasicCompletionTest(%22terraform%7Bbackend %5C%22%3Ccaret%3E%5C%22 %7B%7D%7D%22, %22s3%22);%0A    doBasicCompletionTest(%22terraform%7Bbackend %3Ccaret%3E %7B%7D%7D%22, %22s3%22);%0A%0A//    TODO: Investigate and uncomment. For now it's ok since autocomption handler on 'backend' would add name and braces%0A//    doBasicCompletionTest(%22terraform%7Bbackend %5C%22%3Ccaret%3E%5C%22%7D%22, %22s3%22);%0A//    doBasicCompletionTest(%22terraform%7Bbackend %3Ccaret%3E%7D%22, %22s3%22);%0A  %7D%0A%0A  public void testPropertiesInBackend() throws Exception %7B%0A    doBasicCompletionTest(%22terraform%7Bbackend %5C%22s3%5C%22 %7B%3Ccaret%3E%7D%7D%22, %22bucket%22, %22key%22);%0A  %7D%0A%7D%0A

Add test for 'backend' autocompletion