Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add graphql unit tests #32

Merged
merged 1 commit into from
Aug 17, 2024
Merged

Add graphql unit tests #32

merged 1 commit into from
Aug 17, 2024

Conversation

jarrod-lowe
Copy link
Owner

No description provided.

Copy link

github-actions bot commented Aug 17, 2024

Terraform plan in terraform/environment/wildsea
With backend config: bucket=terraform-state-021891603679 key=primary/terraform.tfstate region=ap-southeast-2

With variables

environment       = "primary"
saml_metadata_url = (sensitive value)
Plan: 0 to add, 1 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~  update in-place

Terraform will perform the following actions:

  # module.wildsea.aws_appsync_resolver.resolver["createGame"] will be updated in-place
!~  resource "aws_appsync_resolver" "resolver" {
!~      code              = <<-EOT
            // mutation/createGame/appsync.ts
          - import { util } from "@aws-appsync/utils";
          + import {
          +   util
          + } from "@aws-appsync/utils";
            function request(context) {
              if (!context.identity) {
                util.error("Unauthorized: Identity information is missing.");
              }
              const identity = context.identity;
              if (!identity.sub) {
                util.error("Unauthorized: User ID is missing.");
              }
              const input = context.arguments.input;
              const id = util.autoId();
              const timestamp = util.time.nowISO8601();
              return {
                operation: "PutItem",
                key: util.dynamodb.toMapValues({ PK: "GAME#" + id, SK: "GAME" }),
                attributeValues: util.dynamodb.toMapValues({
                  name: input.name,
                  description: input.description,
                  id,
                  fireflyUserId: identity.sub,
                  createdAt: timestamp,
                  updatedAt: timestamp
                })
              };
            }
            function response(context) {
              if (context.error) {
                util.appendError(context.error.message, context.error.type, context.result);
                return;
              }
              return context.result;
            }
            export {
              request,
              response
            };
          - //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiYXBwc3luYy50cyJdLAogICJtYXBwaW5ncyI6ICI7QUFBQSxTQUFTLFlBQSt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BQ3hCLE1BQUksQ0FBQyxRQUFRLFVBQVU7QUFDckIsU0FBSyxNQUFNLGdEQUEwRDtBQUFBLEVBQ3ZFO0FBRUEsUUFBTSxXQUFXLFFBQVE7QUFDekIsTUFBSSxDQUFDLFNBQVMsS0FBSztBQUNqQixTQUFLLE1BQU0sbUNBQTZDO0FBQUEsRUFDMUQ7QUFFQSxRQUFNLFFBQVEsUUFBUSxVQUFVO0FBQ2hDLFFBQU0sS0FBSyxLQUFLLE9BQU87QUFDdkIsUUFBTSxZQUFZLEtBQUssS0FBSyxXQUFXO0FBQ3ZDLFNBQU87QUFBQSxJQUNMLFdBQVc7QUFBQSxJQUNYLEtBQUssS0FBSyxTQUFTLFlBQVksRUFBRSxJQUFJLFVBQVUsSUFBSSxJQUFJLE9BQU8sQ0FBQztBQUFBLElBQy9ELGlCQUFpQixLQUFLLFNBQVMsWUFBWTtBQUFBLE1BQ3pDLE1BQU0sTUFBTTtBQUFBLE1BQ1osYUFBYSxNQUFNO0FBQUEsTUFDbkI7QUFBQSxNQUNBLGVBQWUsU0FBUztBQUFBLE1BQ3hCLFdBQVc7QUFBQSxNQUNYLFdBQVc7QUFBQSxJQUNiLENBQUM7QUFBQSxFQUNIO0FBQ0Y7QUFFTyxTQUFTLFNBQVMsU0FBMkI7QUFDbEQsTUFBSSxRQUFRLE9BQU87QUFDakIsU0FBSyxZQUFZLFFBQVEsTUFBTSxTQUFTLFFBQVEsTUFBTSxNQUFNLFFBQVEsTUFBTTtBQUMxRTtBQUFBLEVBQ0Y7QUFDQSxTQUFPLFFBQVE7QUFDakI7IiwKICAibmFtZXMiOiBbXQp9Cg==
        EOT
        id                = "tfiz6mnf2nhyzpzkwm554sir5q-Mutation-createGame"
#        (9 unchanged attributes hidden)

#        (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

✅ Plan applied in Environment Main - Apply #27

Copy link

@jarrod-lowe jarrod-lowe merged commit 88345b6 into main Aug 17, 2024
5 checks passed
@jarrod-lowe jarrod-lowe deleted the work branch August 17, 2024 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant